Sha256: 8625e8accd985fc43bd9b68a5b6f1c48575d6e5cacec1205d8f2f7bfefcd7da0

Contents?: true

Size: 1.03 KB

Versions: 8

Compression:

Stored size: 1.03 KB

Contents

# Remember to require this file in a runbook config file
# or in your project so it is available in your runbooks
# See https://github.com/braintree/runbook/tree/master/lib/runbook/extensions
# for examples of DSL extensions
module MyProject::RunbookExtensions
  module <%= name.classify %>
    module DSL
      # def description(msg)
      #   Runbook::Statements::Description.new(msg).tap do |desc|
      #     # All DSLs can reference their parent object using
      #     # the parent method. This allows you to modify the
      #     # parent book, section, or step of the DSL
      #     parent.add(desc)
      #   end
      # end
    end
  end

  # Uncomment the below statements to add the the DSL methods to
  # Book, Section, and Step DSLs respectively. Now this method can
  # be called from the corresponding DSL in your runbooks
  # Runbook::Entities::Book::DSL.prepend(<%= name.classify %>::DSL)
  # Runbook::Entities::Section::DSL.prepend(<%= name.classify %>::DSL)
  # Runbook::Entities::Step::DSL.prepend(<%= name.classify %>::DSL)
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
careacademy-runbook-1.2.0 lib/runbook/generators/dsl_extension/templates/dsl_extension.tt
runbook-1.1.0 lib/runbook/generators/dsl_extension/templates/dsl_extension.tt
runbook-1.0.0 lib/runbook/generators/dsl_extension/templates/dsl_extension.tt
runbook-0.16.1 lib/runbook/generators/dsl_extension/templates/dsl_extension.tt
runbook-0.16.0 lib/runbook/generators/dsl_extension/templates/dsl_extension.tt
runbook-0.15.0 lib/runbook/generators/dsl_extension/templates/dsl_extension.tt
runbook-0.14.0 lib/runbook/generators/dsl_extension/templates/dsl_extension.tt
runbook-0.13.0 lib/runbook/generators/dsl_extension/templates/dsl_extension.tt