Class: RocketFuel::Precheck::RbenvCheck
- Defined in:
- lib/rocket_fuel/precheck/rbenv_check.rb
Class Method Summary collapse
-
.global_path ⇒ Object
homebrew recommended, alternative path.
- .home_path ⇒ Object
Instance Method Summary collapse
Methods inherited from Check
#check?, check_name, check_name_value, #message, register!, #run
Class Method Details
.global_path ⇒ Object
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_path ⇒ Object
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
9 10 11 |
# File 'lib/rocket_fuel/precheck/rbenv_check.rb', line 9 def ok? !home_path_exists? && !global_path_exists? end |