Sha256: fcb6e9dab2ca2de92414b18ddb660bedaf69a79d5b9df1841c843a06875ac5bb

Contents?: true

Size: 344 Bytes

Versions: 2

Compression:

Stored size: 344 Bytes

Contents

# frozen_string_literal: true

require 'open3'
require 'pg_export/entities/dump'
require 'pg_export/value_objects/dump_file'

class PgExport
  module Factories
    class GatewayDumpFileFactory
      def by_name(name:, gateway:)
        file = ValueObjects::DumpFile.new
        gateway.get(file, name)

        file
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pg_export-1.0.0 lib/pg_export/factories/gateway_dump_file_factory.rb
pg_export-1.0.0.rc8 lib/pg_export/factories/gateway_dump_file_factory.rb