class Buildkite::Builder::Group

Attributes

data[R]
label[R]

Public Class Methods

new(label, steps, &block) click to toggle source
# File lib/buildkite/builder/group.rb, line 16
def initialize(label, steps, &block)
  @label = label
  @data = Data.new
  @data.steps = StepCollection.new(
    steps.templates,
    steps.plugins
  )
  @data.notify = []

  @dsl = Dsl.new(self)
  @dsl.extend(Extensions::Steps)
  @dsl.extend(Extensions::Notify)
  instance_eval(&block) if block_given?
  self
end
to_sym() click to toggle source
# File lib/buildkite/builder/group.rb, line 12
def self.to_sym
  name.split('::').last.downcase.to_sym
end

Public Instance Methods

method_missing(method_name, *args, **kwargs, &_block) click to toggle source
# File lib/buildkite/builder/group.rb, line 37
def method_missing(method_name, *args, **kwargs, &_block)
  @dsl.public_send(method_name, *args, **kwargs, &_block)
end
to_h() click to toggle source
Calls superclass method Buildkite::Pipelines::Attributes#to_h
# File lib/buildkite/builder/group.rb, line 32
def to_h
  attributes = super
  { group: label }.merge(attributes).merge(data.to_definition)
end