Class: Checker::RVM

Inherits:
Object
  • Object
show all
Defined in:
lib/checker/rvm.rb

Class Method Summary collapse

Class Method Details

.rvm_command(command) ⇒ Object



4
5
6
7
8
9
# File 'lib/checker/rvm.rb', line 4

def rvm_command(command)
  rvm_gem  = ENV['GEM_HOME'].to_s
  rvm_version = rvm_gem.gsub(/.+rvm\/gems\//, "")

  "#{rvm_shell} '#{rvm_version}' -c '#{command}'"
end

.rvm_shellObject



11
12
13
# File 'lib/checker/rvm.rb', line 11

def rvm_shell
  File.join(ENV['rvm_path'].to_s, 'bin/rvm-shell')
end