jeremymcanally / rg
- Source
- Commits
- Network (3)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
90a29e0
Jeremy McAnally (author)
Thu Oct 23 10:49:53 -0700 2008
rg / README.txt
| 90a29e02 » | Jeremy McAnally | 2008-10-23 | 1 | rg | |
| 2 | by Jeremy McAnally | ||||
| 3 | jeremy@entp.com | ||||
| 4 | |||||
| 5 | == DESCRIPTION: | ||||
| 6 | |||||
| 7 | Generate Rails applications from your own template! | ||||
| 8 | |||||
| 9 | == FEATURES/PROBLEMS: | ||||
| 10 | |||||
| 11 | * Generate a Rails application from a template, including plugins, vendored gems, lib files, initializers, etc. | ||||
| 12 | * Includes a solid list of built-in templates | ||||
| 13 | * Save yourself the hassle of keeping your core components up to date (coming soon) | ||||
| 14 | * Install system wide templates | ||||
| 15 | * Pull templates in from files, stdin, and straight from a Gist (http://gist.github.com/). | ||||
| 16 | |||||
| 17 | == SYNOPSIS: | ||||
| 18 | |||||
| 19 | Here's a really random example; checkout the documentation for Rg::Runner to see what each | ||||
| 20 | method can do. You can also check out the builtin/ directory to see some solid examples. | ||||
| 21 | |||||
| 22 | template :thing, "Describe it here" do | ||||
| 23 | # Install some plugins | ||||
| 24 | plugin("thing", :git => "git://www.github.com/dudette/thing.git") | ||||
| 25 | |||||
| 26 | # Vendor some gems | ||||
| 27 | gem("name") | ||||
| 28 | gem("name", :git => "git://github.com/dude/name.git") | ||||
| 29 | |||||
| 30 | lib("path/to/file.rb") do | ||||
| 31 | put_some_code(:here) | ||||
| 32 | end | ||||
| 33 | |||||
| 34 | task :thing do | ||||
| 35 | # blah | ||||
| 36 | end | ||||
| 37 | |||||
| 38 | rakefile "file.rake" do | ||||
| 39 | desc "blah" | ||||
| 40 | task :hoohah do | ||||
| 41 | puts "hi" | ||||
| 42 | end | ||||
| 43 | end | ||||
| 44 | |||||
| 45 | generate("migration", "add_field_to_table thing:string") | ||||
| 46 | end | ||||
| 47 | |||||
| 48 | == REQUIREMENTS: | ||||
| 49 | |||||
| 50 | * ruby2ruby if you want to use the built-in templates and/or the fancy code block dumping | ||||
| 51 | |||||
| 52 | == INSTALL: | ||||
| 53 | |||||
| 54 | * sudo gem install jeremymcanally-rg | ||||
| 55 | |||||
| 56 | == LICENSE: | ||||
| 57 | |||||
| 58 | (The MIT License) | ||||
| 59 | |||||
| 60 | Copyright (c) 2008 FIXME (different license?) | ||||
| 61 | |||||
| 62 | Permission is hereby granted, free of charge, to any person obtaining | ||||
| 63 | a copy of this software and associated documentation files (the | ||||
| 64 | 'Software'), to deal in the Software without restriction, including | ||||
| 65 | without limitation the rights to use, copy, modify, merge, publish, | ||||
| 66 | distribute, sublicense, and/or sell copies of the Software, and to | ||||
| 67 | permit persons to whom the Software is furnished to do so, subject to | ||||
| 68 | the following conditions: | ||||
| 69 | |||||
| 70 | The above copyright notice and this permission notice shall be | ||||
| 71 | included in all copies or substantial portions of the Software. | ||||
| 72 | |||||
| 73 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, | ||||
| 74 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||||
| 75 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||||
| 76 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||||
| 77 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||||
| 78 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||||
| 79 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||||

