Class: Vito::Recipes::Postgres

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

Instance Method Summary collapse

Methods inherited from Vito::Recipe

#depends_on_recipe, #initialize, #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
# File 'lib/vito/recipes/postgres.rb', line 4

def run
  if installed?
    Vito::Log.write "Postgres already installed."
  else
    Vito::Log.write "Installing Postgres"
    install_os_dependencies
    install
  end
end