Sha256: 70edc9dbf44ad5622e13ee0d367d148bbd0b8e8692652796da310ab214ee141d

Contents?: true

Size: 382 Bytes

Versions: 5

Compression:

Stored size: 382 Bytes

Contents

module Runbook::Extensions
  module Setup
    module DSL
      def setup(*tags, labels: {}, &block)
        Runbook::Entities::Setup.new(
          tags: tags,
          labels: labels,
        ).tap do |setup|
          parent.add(setup)
          setup.dsl.instance_eval(&block) if block
        end
      end
    end
  end

  Runbook::Entities::Book::DSL.prepend(Setup::DSL)
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
careacademy-runbook-1.2.0 lib/runbook/extensions/setup.rb
runbook-1.1.0 lib/runbook/extensions/setup.rb
runbook-1.0.0 lib/runbook/extensions/setup.rb
runbook-0.16.1 lib/runbook/extensions/setup.rb
runbook-0.16.0 lib/runbook/extensions/setup.rb