Sha256: cbf09b9df11b638829f87af97cb4c03633da47a5a6fb0629b44c301c12b56228

Contents?: true

Size: 525 Bytes

Versions: 5

Compression:

Stored size: 525 Bytes

Contents

# frozen_string_literal: true

require "cogger"
require "dry-container"
require "gitt"
require "spek"

module Milestoner
  # 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__}/../../milestoner.gemspec" }
    register(:git) { Gitt::Repository.new }
    register(:kernel) { Kernel }
    register(:logger) { Cogger::Client.new }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
milestoner-15.2.2 lib/milestoner/container.rb
milestoner-15.2.1 lib/milestoner/container.rb
milestoner-15.2.0 lib/milestoner/container.rb
milestoner-15.1.0 lib/milestoner/container.rb
milestoner-15.0.0 lib/milestoner/container.rb