Sha256: 7a2a3d9bfedb99b5597ded628fb5eb35c2942296c90178d50003094655eea6fd

Contents?: true

Size: 915 Bytes

Versions: 20

Compression:

Stored size: 915 Bytes

Contents

module TemplateDSL
  def self.extend_dsl(object, source_path: __FILE__)
    require_relative './template-helpers'
    require_relative './variable-helpers'
    require_relative './environment-helpers'
    require_relative './gem-helpers'
    require_relative './docker-helpers'
    require_relative './callback-helpers'
    require_relative './answer-helpers'
    require_relative './info-helpers'
    require_relative './readme-helpers'
    require_relative './rubocop-helpers'

    object.send :extend, TemplateHelpers
    object.send :extend, VariableHelpers
    object.send :extend, EnvironmentHelpers
    object.send :extend, GemHelpers
    object.send :extend, CallbackHelpers
    object.send :extend, AnswerHelpers
    object.send :extend, InfoHelpers
    object.send :extend, ReadmeHelpers
    object.send :extend, RubocopHelpers

    object.send :source_path, source_path
    object.load_answers
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
potassium-7.2.0 lib/potassium/helpers/template-dsl.rb
potassium-7.1.0 lib/potassium/helpers/template-dsl.rb
potassium-7.0.0 lib/potassium/helpers/template-dsl.rb
potassium-6.7.0 lib/potassium/helpers/template-dsl.rb
potassium-6.6.0 lib/potassium/helpers/template-dsl.rb
potassium-6.5.0 lib/potassium/helpers/template-dsl.rb
potassium-6.4.0 lib/potassium/helpers/template-dsl.rb
potassium-6.3.0 lib/potassium/helpers/template-dsl.rb
potassium-6.2.0 lib/potassium/helpers/template-dsl.rb
potassium-6.1.0 lib/potassium/helpers/template-dsl.rb
potassium-6.0.0 lib/potassium/helpers/template-dsl.rb
potassium-5.2.3 lib/potassium/helpers/template-dsl.rb
potassium-5.2.2 lib/potassium/helpers/template-dsl.rb
potassium-5.2.1 lib/potassium/helpers/template-dsl.rb
potassium-5.2.0 lib/potassium/helpers/template-dsl.rb
potassium-5.1.4 lib/potassium/helpers/template-dsl.rb
potassium-5.1.3 lib/potassium/helpers/template-dsl.rb
potassium-5.1.2 lib/potassium/helpers/template-dsl.rb
potassium-5.1.1 lib/potassium/helpers/template-dsl.rb
potassium-3.0.0 lib/potassium/helpers/template-dsl.rb