Class: Flynn::Recipes::Rails3
- Defined in:
- lib/flynn/recipes/rails3.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 14 |
# File 'lib/flynn/recipes/rails3.rb', line 6 def create(app_name, =[]) RVM.gemset_create app_name RVM.gemset_use! app_name #install_gem 'install', 'rails', '-v', '~> 2.3' run("gem install rails -v '~> 3.0' --no-rdoc --no-ri") puts "Creating #{app_name}" run("rvm gemset use #{app_name} && rails new #{app_name} #{.join(" ")}") create_project_rvmrc(app_name) end |