Class: Boxen::Preflight::Rbenv
- Inherits:
-
Boxen::Preflight
- Object
- Check
- Boxen::Preflight
- Boxen::Preflight::Rbenv
- Defined in:
- lib/boxen/preflight/rbenv.rb
Instance Attribute Summary
Attributes inherited from Check
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
9 10 11 |
# File 'lib/boxen/preflight/rbenv.rb', line 9 def ok? !File.exist? "#{ENV['HOME']}/.rbenv" end |
#run ⇒ Object
4 5 6 7 |
# File 'lib/boxen/preflight/rbenv.rb', line 4 def run warn "You have an existing rbenv installed in ~/.rbenv.", "Boxen provides its own rbenv, so consider deleting yours." end |