Class: Boxen::Preflight::Rbenv

Inherits:
Boxen::Preflight show all
Defined in:
lib/boxen/preflight/rbenv.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/rbenv.rb', line 9

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

#runObject



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