Module: PangeaRbenv

Includes:
PangeaBase
Defined in:
lib/pangea/modules.rb

Constant Summary collapse

BIN =
%(rbenv).freeze
RBENV_DIR =
File.join(
  BASE_DIR,
  %(rbenv)
)
VERSIONS_DIR =
File.join(
  RBENV_DIR,
  %(versions)
)

Constants included from PangeaBase

PangeaBase::BASE_DIR

Class Method Summary collapse

Class Method Details

.rbenv_install(_version) ⇒ Object



35
36
37
# File 'lib/pangea/modules.rb', line 35

def rbenv_install(_version)
  system %(mkdir -p #{VERSIONS_DIR}) unless Dir.exist?(VERSIONS_DIR)
end

.rbenv_installed?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/pangea/modules.rb', line 31

def rbenv_installed?
  `which rbenv`.strip != ''
end