Sha256: 5e51bfe6174e230d033d322624e8c2d6dd24e9d09accc27c94d3ddd9c5f1c492
Contents?: true
Size: 445 Bytes
Versions: 2
Compression:
Stored size: 445 Bytes
Contents
require 'open3' require 'pg_export/dump' class PgExport module Bash class Factory def initialize(adapter:, logger:) @adapter, @logger = adapter, logger end def build_dump(db_name) dump = Dump.new(name: 'Dump', db_name: db_name) adapter.get(dump.path, dump.db_name) logger.info "Create #{dump}" dump end private attr_reader :adapter, :logger end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pg_export-0.6.1 | lib/pg_export/bash/factory.rb |
pg_export-0.6.0 | lib/pg_export/bash/factory.rb |