Module: Masamune::Actions::PostgresAdmin

Included in:
Postgres, Helpers::Postgres
Defined in:
lib/masamune/actions/postgres_admin.rb

Instance Method Summary collapse

Instance Method Details

#postgres_admin(opts = {}) ⇒ Object



25
26
27
28
29
30
31
32
33
# File 'lib/masamune/actions/postgres_admin.rb', line 25

def postgres_admin(opts = {})
  opts = opts.to_hash.symbolize_keys

  command = Masamune::Commands::PostgresAdmin.new(environment, opts)
  command = Masamune::Commands::RetryWithBackoff.new(command, postgres_admin_retry_with_backoff_options.merge(opts))
  command = Masamune::Commands::Shell.new(command, opts)

  command.execute
end