Class: Vito::Recipes::Rbenv::Install

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

Instance Method Summary collapse

Methods inherited from Vito::Recipe

#depends_on_recipe, #initialize, #install_os_dependencies, #method_missing, #os, #program_version, #query, #remove, #run_command, #update, #with, #with?

Constructor Details

This class inherits a constructor from Vito::Recipe

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Vito::Recipe

Instance Method Details

#installObject



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

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

  install_ruby_build
end