Sha256: af2711f1f08ba602fd7fb23ce71d60923db0b899204b0d43cc1d1592b5b5895c

Contents?: true

Size: 390 Bytes

Versions: 6

Compression:

Stored size: 390 Bytes

Contents

# frozen_string_literal: true

require 'dry-types'
require 'pg_export/lib/pg_export/value_objects/dump_file'

class PgExport
  module Types
    include Dry::Types.module

    DumpName = Strict::String.constrained(format: /.+_20[0-9]{6}_[0-9]{6}\Z/)
    DumpType = Types::Coercible::String.enum('plain', 'encrypted')
    DumpFile = Types.Instance(PgExport::ValueObjects::DumpFile)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pg_export-0.7.5 lib/pg_export/lib/pg_export/types.rb
pg_export-0.7.4 lib/pg_export/lib/pg_export/types.rb
pg_export-0.7.3 lib/pg_export/lib/pg_export/types.rb
pg_export-0.7.2 lib/pg_export/lib/pg_export/types.rb
pg_export-0.7.1 lib/pg_export/lib/pg_export/types.rb
pg_export-0.7.0 lib/pg_export/lib/pg_export/types.rb