Class: WebTranslateIt::Safe::Pgdump

Inherits:
Source show all
Defined in:
lib/web_translate_it/safe/pgdump.rb

Instance Attribute Summary

Attributes inherited from Source

#id

Attributes inherited from Stream

#backup, #config

Instance Method Summary collapse

Methods inherited from Source

#backup, #filename, human_name, #initialize, #kind, #timestamp

Methods inherited from Stream

#expand, #initialize

Constructor Details

This class inherits a constructor from WebTranslateIt::Safe::Source

Instance Method Details

#commandObject



7
8
9
10
# File 'lib/web_translate_it/safe/pgdump.rb', line 7

def command
  ENV['PGPASSWORD'] = (config['password'] || nil)
  "pg_dump #{postgres_options} #{postgres_username} #{postgres_host} #{postgres_port} #{@id}"
end

#extensionObject



12
# File 'lib/web_translate_it/safe/pgdump.rb', line 12

def extension = '.sql'