Sha256: ca87092e8e41c46c7a141f8836d0ada9744ccd09443811e1795f0fafe9b896eb

Contents?: true

Size: 393 Bytes

Versions: 1

Compression:

Stored size: 393 Bytes

Contents

class PgExport
  class SqlDump < Dump::Base
    def name
      'Dump'
    end

    def ext
      ''
    end

    def open(operation_type, &block)
      case operation_type.to_sym
        when :read then File.open(path, 'r', &block)
        when :write then File.open(path, 'w', &block)
        else raise ArgumentError, 'Operation type can be only :read or :write'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pg_export-0.3.2 lib/pg_export/entities/sql_dump.rb