Sha256: b26c66d10bb4f584933a91b89be4f63d67096cc26e5ce4f9d1f16d4cea53f581
Contents?: true
Size: 966 Bytes
Versions: 15
Compression:
Stored size: 966 Bytes
Contents
# frozen_string_literal: true module Buildkite module Pipelines module Steps class Group < Abstract attribute :label attribute :key attribute :skip attribute :if, as: :condition attribute :depends_on, append: true attribute :allow_dependency_failure attr_reader :steps def initialize(pipeline, **args) @pipeline = pipeline @context = StepContext.new(self, **args) @steps = Buildkite::Builder::StepCollection.new end def method_missing(method_name, ...) if @pipeline.dsl.respond_to?(method_name) @pipeline.dsl.public_send(method_name, ...) else super end end def respond_to_missing?(...) @pipeline.dsl.respond_to?(...) || super end def to_h super.merge(group: nil, steps: steps.to_definition) end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems