Class: Vito::Recipes::Rbenv

Inherits:
Vito::Recipe show all
Defined in:
lib/vito/recipes/rbenv.rb

Instance Method Summary collapse

Methods inherited from Vito::Recipe

#depends_on_recipe, #initialize, #install_os_dependencies, #os, #program_version, #query, #run_command

Constructor Details

This class inherits a constructor from Vito::Recipe

Instance Method Details

#runObject



4
5
6
7
8
9
10
11
12
13
# File 'lib/vito/recipes/rbenv.rb', line 4

def run
  if rbenv_installed?
    Vito::Log.write "Rbenv already installed."
  else
    Vito::Log.write "Installing Rbenv"
    depends_on_recipe(:git)
    install_rbenv
    install_ruby_build
  end
end