Class: Avm::Postgresql::Instance::DataUnit

Inherits:
Data::Instance::Unit
  • Object
show all
Defined in:
lib/avm/postgresql/instance/data_unit.rb

Constant Summary collapse

EXTENSION =
'.pgdump.gz'

Instance Method Summary collapse

Instance Method Details

#dump_commandObject



13
14
15
# File 'lib/avm/postgresql/instance/data_unit.rb', line 13

def dump_command
  instance.dump_gzip_command
end

#load_commandObject



17
18
19
# File 'lib/avm/postgresql/instance/data_unit.rb', line 17

def load_command
  instance.psql_command.prepend(['gzip', '-d', '@ESC_|'])
end