Class: Preseason::Recipe::Rvm
- Inherits:
-
Preseason::Recipe
- Object
- Preseason::Recipe
- Preseason::Recipe::Rvm
- Defined in:
- lib/preseason/recipe/rvm.rb
Instance Attribute Summary
Attributes inherited from Preseason::Recipe
Instance Method Summary collapse
Methods inherited from Preseason::Recipe
#initialize, #post_install_hook, #recipe_root
Methods included from Colorize
Methods included from GeneratorContext
Constructor Details
This class inherits a constructor from Preseason::Recipe
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Preseason::GeneratorContext
Instance Method Details
#prepare ⇒ Object
4 5 6 7 8 9 |
# File 'lib/preseason/recipe/rvm.rb', line 4 def prepare run "rvm gemset create #{app_name}" RVM.gemset_use! "#{app_name}" # `run "rvm gemset use #{app_name}"` doesn't work -- rvm still uses the terminal's current gemset create_file '.ruby-version', "#{RUBY_VERSION}\n" create_file '.ruby-gemset', "#{app_name}\n" end |