github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

rmm5t / yarg

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 5
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Yet Another Ruby Generator: Customize existing project generators to fit your personality. — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Added a note to the README about abandoning the project (for now). 
rmm5t (author)
Mon May 25 17:33:08 -0700 2009
commit  3418efb4e9eb49bceb587b6f4014ac202d0cd262
tree    08d07201872c98103b3a78f6f858724f0b15ba70
parent  650625d02dec42876682938c509282c8bb4a808a
yarg /
name age
history
message
file .gitignore Loading commit data...
file Manifest
file README.markdown
file Rakefile Thu Nov 13 13:14:56 -0800 2008 Switched to using echoe for rake tasks [rmm5t]
directory bin/ Wed Nov 12 13:21:55 -0800 2008 Give the script rails support [rmm5t]
directory lib/
directory test/ Thu Nov 20 20:48:01 -0800 2008 minor test cleanup [rmm5t]
file yarg.gemspec Tue Nov 18 10:31:21 -0800 2008 Version bump to 0.1.3 [rmm5t]
README.markdown

yarg: Yet Another Ruby Generator

Yarg is Yet Another Ruby Generator. It allows you to customize existing project generators to fit your personality or common scaffolding. In other words, it allows you to bootstrap new projects without the typical mundane setup.

While I still have a fondness for the approach taken here, I've abandoned this project (for now). My original need for this project was mostly fulfilled when Rails Templates were introduced in Rails 2.3. When you can't beat 'em, join 'em.

Yarg is still in its infancy. It currently works for rails generation, but use it at your own risk.

Usage

Install:

$ sudo gem install rmm5t-yarg --source http://gems.github.com

Configure by placing a ~/.yarg file in your home directory. Here's a simple example

Yarg::Rails.new do |rg|
  rg.scm :git
  rg.delete "public/index.html"
  rg.plugin "git://github.com/thoughtbot/shoulda.git"
end

Here's another example:

Yarg::Rails.new do |rg|
  rg.scm :git, :using => :submodules
  rg.template "~/.yarg.d/rails"
  rg.delete "public/index.html"
  rg.delete "public/dispatch.*"
  rg.plugin "git://github.com/thoughtbot/shoulda.git"
  rg.plugin "git://github.com/nex3/haml.git"
  rg.plugin "git://github.com/rmm5t/strip_attributes.git"
  rg.plugin "git://github.com/github/hubahuba.git"
  rg.freeze :version => :edge
end

Afterwards, you should be able to launch a new Rails project easily:

$ yarg my_new_project

TODO

  • Add better option parsing support in script (including a template name option)
  • Add better handling of error conditions
  • Add rails gem freezing support
  • Add newgem support
  • Add merb support
  • Add webby support
  • Add staticmatic support
  • Add svn support (?)

Other

MIT License

Copyright (c) 2008, Ryan McGeary (ryanonruby -[at]- mcgeary [dot] org)

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server