Class: Rvm
Overview
Manages the Ruby Version Manager RVM
Instance Method Summary collapse
Methods inherited from Passenger
by_name, emoji_name, #initialize, needs, register_as, with_emoji
Constructor Details
This class inherits a constructor from Passenger
Instance Method Details
#down ⇒ Object
20 21 22 |
# File 'lib/exogenesis/passengers/rvm.rb', line 20 def down execute_interactive 'Teardown', 'rvm implode' end |
#up ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/exogenesis/passengers/rvm.rb', line 9 def up if command_exists? 'rvm' skip_task 'Setup' else execute_interactive 'Setup', '\\curl -L https://get.rvm.io | bash -s' end execute 'Update', 'rvm get head' rubies.each { |ruby| install_or_update_ruby ruby } execute 'Reload', 'rvm reload' end |