Sha256: 142c6bd2fac92aa55abf83c0c419c350136270f2af513a5172e92173dd55894f

Contents?: true

Size: 564 Bytes

Versions: 9

Compression:

Stored size: 564 Bytes

Contents

# frozen_string_literal: true

require "dry/container"

module Rubysmith
  module Configuration
    module Enhancers
      # Provides a container of enhancers for injection into other objects.
      module Container
        extend Dry::Container::Mixin

        register(:current_time) { Enhancers::CurrentTime }
        register(:git_hub_user) { Enhancers::GitHubUser }
        register(:git_email) { Enhancers::GitEmail }
        register(:git_user) { Enhancers::GitUser }
        register(:template_root) { Enhancers::TemplateRoot }
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rubysmith-4.9.0 lib/rubysmith/configuration/enhancers/container.rb
rubysmith-4.8.0 lib/rubysmith/configuration/enhancers/container.rb
rubysmith-4.7.0 lib/rubysmith/configuration/enhancers/container.rb
rubysmith-4.6.1 lib/rubysmith/configuration/enhancers/container.rb
rubysmith-4.6.0 lib/rubysmith/configuration/enhancers/container.rb
rubysmith-4.5.0 lib/rubysmith/configuration/enhancers/container.rb
rubysmith-4.4.0 lib/rubysmith/configuration/enhancers/container.rb
rubysmith-4.3.0 lib/rubysmith/configuration/enhancers/container.rb
rubysmith-4.2.0 lib/rubysmith/configuration/enhancers/container.rb