Sha256: b17eab04eb522ffa500a83dbd30e685e0fb7942a9425be4437434dc2e19a7c32

Contents?: true

Size: 528 Bytes

Versions: 2

Compression:

Stored size: 528 Bytes

Contents

# frozen_string_literal: true

require 'dry/system/container'

class PgExport
  class Container < Dry::System::Container
    configure do
      config.root = Pathname(__FILE__).realpath.dirname
      config.name = :pg_export
      config.default_namespace = 'pg_export'
      config.auto_register = %w[lib]
    end

    load_paths!('lib')

    boot(:main) do |system|
      use(:config)
      use(system[:config].gateway) # ftp/ssh
      use(:operations)
      use(system[:config].mode)    # plain/interactive
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pg_export-1.0.0.rc5 lib/pg_export/container.rb
pg_export-1.0.0.rc4 lib/pg_export/container.rb