Class: Boxen::Preflight::RVM

Inherits:
Boxen::Preflight show all
Defined in:
lib/boxen/preflight/rvm.rb

Instance Attribute Summary

Attributes inherited from Check

#config

Instance Method Summary collapse

Methods inherited from Check

#abort, checks, #initialize, register, run, #warn

Constructor Details

This class inherits a constructor from Boxen::Check

Instance Method Details

#ok?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/boxen/preflight/rvm.rb', line 9

def ok?
  !File.exist? "#{ENV['HOME']}/.rvm"
end

#runObject



4
5
6
7
# File 'lib/boxen/preflight/rvm.rb', line 4

def run
  abort "You have an rvm installed in ~/.rvm.",
    "The Setup uses rbenv to install ruby, so please `rvm implode`"
end