class RocketFuel::Precheck::RvmCheck

Public Class Methods

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

Public Instance Methods

ok?() click to toggle source
# File lib/rocket_fuel/precheck/rvm_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/rvm_check.rb, line 28
def failure_message
  "RVM found!"
end
global_path_exists?() click to toggle source
# File lib/rocket_fuel/precheck/rvm_check.rb, line 36
def global_path_exists?
  FileTest.exist?(self.class.global_path)
end
home_path_exists?() click to toggle source
# File lib/rocket_fuel/precheck/rvm_check.rb, line 32
def home_path_exists?
  FileTest.exist?(self.class.home_path)
end
success_message() click to toggle source
# File lib/rocket_fuel/precheck/rvm_check.rb, line 24
def success_message
  "RVM NOT found."
end