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