Class: Masamune::Tasks::PostgresThor

Inherits:
Masamune::Thor show all
Includes:
Actions::Postgres, Masamune::Thor
Defined in:
lib/masamune/tasks/postgres_thor.rb

Constant Summary

Constants included from Masamune::Thor

Masamune::Thor::SYSTEM_CONFIG_FILES

Constants included from AfterInitializeCallbacks

AfterInitializeCallbacks::PRIORITY

Instance Method Summary collapse

Methods included from Actions::Postgres

#create_postgres_database_if_not_exists, #load_postgres_schema, #load_postgres_setup_files, #postgres

Methods included from Masamune::Transform::DefineSchema

#define_schema

Methods included from Masamune::Transform::DefineTable

#define_table

Methods included from Actions::PostgresAdmin

#postgres_admin

Methods included from AfterInitializeCallbacks

#after_initialize_invoke

Methods included from HasEnvironment

#environment, #environment=

Instance Method Details

#psql_execObject



42
43
44
45
46
47
# File 'lib/masamune/tasks/postgres_thor.rb', line 42

def psql_exec
  postgres_options = options.dup.with_indifferent_access
  postgres_options[:print] = true
  postgres_options[:max_retries] = 0 unless options[:retry]
  postgres(postgres_options)
end