Class: RocketFuel::Precheck::RvmCheck

Inherits:
Check
  • Object
show all
Defined in:
lib/rocket_fuel/precheck/rvm_check.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Check

#check?, check_name, check_name_value, #message, register!, #run

Class Method Details

.global_pathObject



18
19
20
# File 'lib/rocket_fuel/precheck/rvm_check.rb', line 18

def global_path
  '/usr/local/rvm'
end

.home_pathObject



14
15
16
# File 'lib/rocket_fuel/precheck/rvm_check.rb', line 14

def home_path
  File.join(ENV['HOME'], '.rvm')
end

Instance Method Details

#ok?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/rocket_fuel/precheck/rvm_check.rb', line 9

def ok?
  !home_path_exists? && !global_path_exists?
end