Class: Vito::Recipes::Git

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

Instance Method Summary collapse

Methods inherited from Vito::Recipe

#depends_on_recipe, #initialize, #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/git.rb', line 4

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