Class: Flynn::Recipes::Rails2
- Defined in:
- lib/flynn/recipes/rails2.rb
Instance Method Summary collapse
Methods inherited from RvmBase
Methods included from Helpers
#create_file, #executable_path, #inside, #run
Constructor Details
This class inherits a constructor from Flynn::Recipes::RvmBase
Instance Method Details
#create(app_name, options = []) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/flynn/recipes/rails2.rb', line 6 def create(app_name, =[]) RVM.gemset_create app_name RVM.gemset_use! app_name run("gem install rails -v '~> 2.3' --no-rdoc --no-ri") puts "Creating #{app_name}" run("rvm gemset use #{app_name} && rails #{app_name} #{.join(" ")}") create_project_rvmrc(app_name) end |