Class: Rda::Rvm

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/rda/rvm.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



5
6
7
# File 'lib/rda/rvm.rb', line 5

def self.source_root
  File.dirname(__FILE__)
end

Instance Method Details

#discardObject



20
21
22
23
# File 'lib/rda/rvm.rb', line 20

def discard
  remove_file(rvmrc_path)
  remove_file(setup_load_paths_path)
end

#setupObject



10
11
12
13
14
15
16
17
# File 'lib/rda/rvm.rb', line 10

def setup
  if installed?
    template('templates/rvmrc', rvmrc_path)
    create_setup_load_paths
  else
    $stderr.puts "ERROR: RVM is not found. Please make sure that RVM is installed."
  end
end