Class: Vito::Recipes::Postgres::Install

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

Instance Method Summary collapse

Methods inherited from Vito::Recipe

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

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