Class: Vito::Recipes::Git::Install

Inherits:
Vito::Recipe show all
Defined in:
lib/vito/recipes/git/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
# File 'lib/vito/recipes/git/install.rb', line 5

def install
  if git_installed?
    Vito::Log.write "Git is already installed."
  else
    Vito::Log.write "Installing Git's OS dependencies"
    install_os_dependencies(os_dependencies)
    Vito::Log.write "Installing Git itself"
    install_git
  end
end