Class: RocketFuel::Precheck::RbenvCheck

Inherits:
Check
  • Object
show all
Defined in:
lib/rocket_fuel/precheck/rbenv_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

homebrew recommended, alternative path



19
20
21
# File 'lib/rocket_fuel/precheck/rbenv_check.rb', line 19

def global_path
  '/usr/local/var/rbenv'
end

.home_pathObject



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

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

Instance Method Details

#ok?Boolean

Returns:

  • (Boolean)


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

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