Class: PgExport::Factories::DumpFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/pg_export/lib/pg_export/factories/dump_factory.rb

Instance Method Summary collapse

Instance Method Details

#plain(database:, file:) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/pg_export/lib/pg_export/factories/dump_factory.rb', line 12

def plain(database:, file:)
  Entities::Dump.new(
    name: [database, timestamp].join('_'),
    database: database,
    file: file,
    type: :plain
  )
end