Sha256: af4b3024c855558c199d80c510decd34d1ffa67775341a43f6a46223c6d4eb9a
Contents?: true
Size: 545 Bytes
Versions: 16
Compression:
Stored size: 545 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::Client.new } end end
Version data entries
16 entries across 16 versions & 1 rubygems