Sha256: 5102ee6ca53a30d79cc7749365cf73f7fc81dd949d942331d7fe60cc3595744c

Contents?: true

Size: 660 Bytes

Versions: 8

Compression:

Stored size: 660 Bytes

Contents

# frozen_string_literal: true

require "cogger"
require "dry-container"
require "git_plus"
require "open3"
require "spek"

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

      register(:configuration) { Configuration::Loader.call }
      register(:environment) { ENV }
      register(:repository) { GitPlus::Repository.new }
      register(:specification) { Spek::Loader.call "#{__dir__}/../../../git-lint.gemspec" }
      register(:kernel) { Kernel }
      register(:executor) { Open3 }
      register(:logger) { Cogger::Client.new }
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
git-lint-4.6.0 lib/git/lint/container.rb
git-lint-4.5.0 lib/git/lint/container.rb
git-lint-4.4.0 lib/git/lint/container.rb
git-lint-4.3.0 lib/git/lint/container.rb
git-lint-4.2.0 lib/git/lint/container.rb
git-lint-4.1.0 lib/git/lint/container.rb
git-lint-4.0.1 lib/git/lint/container.rb
git-lint-4.0.0 lib/git/lint/container.rb