Sha256: e098270c88586eaa6d3edba68e7602f7821c50c623e060b9a41bad6c5f0e9d01

Contents?: true

Size: 758 Bytes

Versions: 10

Compression:

Stored size: 758 Bytes

Contents

# frozen_string_literal: true

require "dry/container"

module Pennyworth
  module CLI
    module Actions
      # Provides a single container with application and action specific dependencies.
      module Container
        extend Dry::Container::Mixin

        merge Pennyworth::Container

        register(:config) { Config.new }
        register(:encodings) { Encodings.new }
        register(:git_hub) { GitHub.new }
        register(:http_statuses) { HTTPStatuses.new }
        register(:ruby_gems) { RubyGems.new }
        register(:standard_errors) { StandardErrors.new }
        register(:system_errors) { System::Errors.new }
        register(:system_signals) { System::Signals.new }
        register(:text) { Text.new }
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pennyworth-14.3.0 lib/pennyworth/cli/actions/container.rb
pennyworth-14.2.1 lib/pennyworth/cli/actions/container.rb
pennyworth-14.2.0 lib/pennyworth/cli/actions/container.rb
pennyworth-14.1.2 lib/pennyworth/cli/actions/container.rb
pennyworth-14.1.1 lib/pennyworth/cli/actions/container.rb
pennyworth-14.1.0 lib/pennyworth/cli/actions/container.rb
pennyworth-14.0.0 lib/pennyworth/cli/actions/container.rb
pennyworth-13.8.0 lib/pennyworth/cli/actions/container.rb
pennyworth-13.7.0 lib/pennyworth/cli/actions/container.rb
pennyworth-13.6.0 lib/pennyworth/cli/actions/container.rb