Method: Runbook.section

Defined in:
lib/runbook.rb

.section(title, *tags, labels: {}, &block) ⇒ Object



101
102
103
104
105
106
# File 'lib/runbook.rb', line 101

def self.section(title, *tags, labels: {}, &block)
  Configuration.load_config
  Entities::Section.new(title, tags: tags, labels: labels).tap do |section|
    section.dsl.instance_eval(&block)
  end
end