Module: Masamune::Commands::PostgresCommon

Included in:
Postgres, PostgresAdmin
Defined in:
lib/masamune/commands/postgres_common.rb

Instance Method Summary collapse

Instance Method Details

#command_envObject



25
26
27
28
29
30
31
# File 'lib/masamune/commands/postgres_common.rb', line 25

def command_env
  { 'PGOPTIONS' => '--client-min-messages=warning' }.tap do |env|
    if @pgpass_file && File.readable?(@pgpass_file)
      env['PGPASSFILE'] = @pgpass_file
    end
  end
end