Sha256: e4354f083e503c035d6b7362797ff19596034eca716b9dd5c687b70a21aaeaa7

Contents?: true

Size: 555 Bytes

Versions: 1

Compression:

Stored size: 555 Bytes

Contents

# frozen_string_literal: true

require "cogger"
require "dry/container"
require "http"
require "spek"

module Pennyworth
  # Provides a global gem container for injection into other objects.
  module Container
    extend Dry::Container::Mixin

    register(:configuration) { Configuration::Loader.call }
    register(:specification) { Spek::Loader.call "#{__dir__}/../../pennyworth.gemspec" }
    register(:environment) { ENV }
    register(:kernel) { Kernel }
    register(:http) { HTTP }
    register(:logger) { Cogger.new formatter: :emoji }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pennyworth-14.3.0 lib/pennyworth/container.rb