Module: Duple::PostgreSQLEndpoint

Defined in:
lib/duple/endpoint.rb

Instance Method Summary collapse

Instance Method Details

#capture_snapshotObject



84
85
86
# File 'lib/duple/endpoint.rb', line 84

def capture_snapshot
  # Do nothing. When we have non-local PostgreSQL endpoints, this will need to be implemented.
end

#db_configObject



80
81
82
# File 'lib/duple/endpoint.rb', line 80

def db_config
  config.db_config(name)
end

#execute(cmd) ⇒ Object



88
89
90
# File 'lib/duple/endpoint.rb', line 88

def execute(cmd)
  runner.run(cmd.command) if cmd.shell?
end