class RocketFuel::Precheck::RbenvCheck

Public Class Methods

global_path() click to toggle source

homebrew recommended, alternative path

# File lib/rocket_fuel/precheck/rbenv_check.rb, line 19
def global_path
  '/usr/local/var/rbenv'
end
home_path() click to toggle source
# File lib/rocket_fuel/precheck/rbenv_check.rb, line 14
def home_path
  File.join(ENV['HOME'], '.rbenv')
end

Public Instance Methods

ok?() click to toggle source
# File lib/rocket_fuel/precheck/rbenv_check.rb, line 9
def ok?
  !home_path_exists? && !global_path_exists?
end

Protected Instance Methods

failure_message() click to toggle source
# File lib/rocket_fuel/precheck/rbenv_check.rb, line 29
def failure_message
  "rbenv found!"
end
global_path_exists?() click to toggle source
# File lib/rocket_fuel/precheck/rbenv_check.rb, line 37
def global_path_exists?
  FileTest.exist?(self.class.global_path)
end
home_path_exists?() click to toggle source
# File lib/rocket_fuel/precheck/rbenv_check.rb, line 33
def home_path_exists?
  FileTest.exist?(self.class.home_path)
end
success_message() click to toggle source
# File lib/rocket_fuel/precheck/rbenv_check.rb, line 25
def success_message
  "rbenv NOT found."
end