Class: Avm::Stereotypes::Postgresql::Instance::DataUnit
- Inherits:
-
Data::Instance::Unit
- Object
- Data::Unit
- Data::Instance::Unit
- Avm::Stereotypes::Postgresql::Instance::DataUnit
- Defined in:
- lib/avm/stereotypes/postgresql/instance/data_unit.rb
Constant Summary collapse
- EXTENSION =
'.pgdump.gz'
Instance Attribute Summary
Attributes inherited from Data::Instance::Unit
Instance Method Summary collapse
Methods inherited from Data::Instance::Unit
Methods inherited from Data::Unit
#dump, #dump_to_directory, #extension, #load, #load_from_directory, #name
Constructor Details
This class inherits a constructor from Avm::Data::Instance::Unit
Instance Method Details
#dump_command ⇒ Object
14 15 16 |
# File 'lib/avm/stereotypes/postgresql/instance/data_unit.rb', line 14 def dump_command instance.dump_gzip_command end |
#load_command ⇒ Object
18 19 20 |
# File 'lib/avm/stereotypes/postgresql/instance/data_unit.rb', line 18 def load_command instance.psql_command.prepend(['gzip', '-d', '@ESC_|']) end |