Really useful software project management and source code hosting. tell me more...
added base.css asset
| 1 | 1 | # Application Generator Template | |
| 2 | 2 | # Initializes a Rails app to use Mongoid and Devise | |
| 3 | -# Usage: rails new app_name -m http://codaset.com/joelmoss/railings/source/master/raw/railings.rb | ||
| 4 | - | ||
| 3 | +# Usage: rails new app_name -m http://codaset.com/joelmoss/railings/source/master/raw/templates/rails3_devise_mongoid.rb -O -J | ||
| 5 | 4 | # More info: http://codaset.com/joelmoss/railings | |
| 6 | 5 | ||
| 7 | -# If you are customizing this template, you can use any methods provided by Thor::Actions | ||
| 8 | -# http://rdoc.info/rdoc/wycats/thor/blob/f939a3e8a854616784cac1dcff04ef4f3ee5f7ff/Thor/Actions.html | ||
| 9 | -# and Rails::Generators::Actions | ||
| 10 | -# http://github.com/rails/rails/blob/master/railties/lib/rails/generators/actions.rb | ||
| 11 | - | ||
| 12 | 6 | puts "Modifying a new Rails app to use Mongoid and Devise..." | |
| 13 | 7 | ||
| 14 | 8 | puts "setting up source control with 'git'..." | |
| --- | --- | ||
| 18 | 12 | end | |
| 19 | 13 | git :init | |
| 20 | 14 | git :add => '.' | |
| 21 | -git :commit => "-m 'Initial commit of unmodified new Rails app'" | ||
| 15 | +git :commit => "-a -m 'Initial commit of unmodified new Rails app'" | ||
| 22 | 16 | ||
| 23 | 17 | puts "removing unneeded files..." | |
| 24 | 18 | run 'rm public/index.html' | |
| --- | --- | ||
| 41 | 35 | puts "installing Blueprint..." | |
| 42 | 36 | inside ('public/stylesheets') do | |
| 43 | 37 | run "mkdir blueprint; touch base.css" | |
| 38 | + run 'curl -L http://codaset.com/joelmoss/railings/source/master/raw/assets/base.css > base.css' | ||
| 44 | 39 | run 'curl -L http://github.com/joshuaclayton/blueprint-css/raw/master/blueprint/ie.css > blueprint/ie.css' | |
| 45 | 40 | run 'curl -L http://github.com/joshuaclayton/blueprint-css/raw/master/blueprint/screen.css > blueprint/screen.css' | |
| 46 | 41 | run 'curl -L http://github.com/joshuaclayton/blueprint-css/raw/master/blueprint/print.css > blueprint/print.css' | |
| --- | --- | ||
| 251 | 246 | end | |
| 252 | 247 | ||
| 253 | 248 | puts "checking everything into git..." | |
| 249 | +git :add => '.' | ||
| 254 | 250 | git :commit => "-a -m 'modified Rails app to use Mongoid and Devise'" | |
| 255 | 251 | ||
| 256 | 252 | puts "Done setting up your Rails app with Mongoid and Devise." |