module Runbook::Extensions::Sections::DSL

Public Instance Methods

section(title, *tags, labels: {}, &block) click to toggle source
# File lib/runbook/extensions/sections.rb, line 4
def section(title, *tags, labels: {}, &block)
  Runbook::Entities::Section.new(
    title,
    tags: tags,
    labels: labels,
  ).tap do |section|
    parent.add(section)
    section.dsl.instance_eval(&block)
  end
end