Class: PgExport::CreateDump
- Inherits:
-
Object
- Object
- PgExport::CreateDump
- Includes:
- Logging
- Defined in:
- lib/pg_export/actions/create_dump.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(dump) ⇒ CreateDump
constructor
A new instance of CreateDump.
Methods included from Logging
Constructor Details
#initialize(dump) ⇒ CreateDump
Returns a new instance of CreateDump.
5 6 7 |
# File 'lib/pg_export/actions/create_dump.rb', line 5 def initialize(dump) @dump = dump end |
Instance Method Details
#call ⇒ Object
9 10 11 12 13 14 |
# File 'lib/pg_export/actions/create_dump.rb', line 9 def call validate_pg_dump_exists validate_db_exists(dump.database) execute_dump_command logger.info "Dump #{dump.database} to #{dump.pathname} (#{dump.size})" end |