Sha256: 1277ed5e5cf4dc5d8db3e5ffd644ca70639660cfe6f6b426c9af3cf3d1d35b25

Contents?: true

Size: 441 Bytes

Versions: 19

Compression:

Stored size: 441 Bytes

Contents

# frozen_string_literal: true

module Gemsmith
  module Configuration
    module Enhancers
      # Adds gem specific roots to existing content.
      class TemplateRoot
        def initialize overrides = Pathname(__dir__).join("../../templates")
          @overrides = Array overrides
        end

        def call(content) = content.add_template_roots(overrides)

        private

        attr_reader :overrides
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
gemsmith-19.0.0 lib/gemsmith/configuration/enhancers/template_root.rb
gemsmith-18.9.0 lib/gemsmith/configuration/enhancers/template_root.rb
gemsmith-18.8.0 lib/gemsmith/configuration/enhancers/template_root.rb
gemsmith-18.7.0 lib/gemsmith/configuration/enhancers/template_root.rb
gemsmith-18.6.0 lib/gemsmith/configuration/enhancers/template_root.rb
gemsmith-18.5.0 lib/gemsmith/configuration/enhancers/template_root.rb
gemsmith-18.4.0 lib/gemsmith/configuration/enhancers/template_root.rb
gemsmith-18.3.0 lib/gemsmith/configuration/enhancers/template_root.rb
gemsmith-18.2.0 lib/gemsmith/configuration/enhancers/template_root.rb
gemsmith-18.1.1 lib/gemsmith/configuration/enhancers/template_root.rb
gemsmith-18.1.0 lib/gemsmith/configuration/enhancers/template_root.rb
gemsmith-18.0.2 lib/gemsmith/configuration/enhancers/template_root.rb
gemsmith-18.0.1 lib/gemsmith/configuration/enhancers/template_root.rb
gemsmith-18.0.0 lib/gemsmith/configuration/enhancers/template_root.rb
gemsmith-17.0.1 lib/gemsmith/configuration/enhancers/template_root.rb
gemsmith-17.0.0 lib/gemsmith/configuration/enhancers/template_root.rb
gemsmith-16.2.0 lib/gemsmith/configuration/enhancers/template_root.rb
gemsmith-16.1.0 lib/gemsmith/configuration/enhancers/template_root.rb
gemsmith-16.0.0 lib/gemsmith/configuration/enhancers/template_root.rb