Sha256: 88fea872a4d67160160bde534e8eff7881f43f0a51db5c7812c90d24ca800ced

Contents?: true

Size: 475 Bytes

Versions: 2

Compression:

Stored size: 475 Bytes

Contents

require 'dry-struct'

class PgExport
  class Configuration < Dry::Struct
    include Dry::Types.module

    attribute :dump_encryption_key, Strict::String.constrained(size: 16)
    attribute :ftp_host,            Strict::String
    attribute :ftp_user,            Strict::String
    attribute :ftp_password,        Strict::String
    attribute :logger_format,       Strict::Symbol.enum(:plain, :timestamped, :muted)
    attribute :interactive,         Strict::Bool
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pg_export-0.6.1 lib/pg_export/configuration.rb
pg_export-0.6.0 lib/pg_export/configuration.rb