Sha256: 866119a70dda9a814b297b880d47b1d8059c75b6dabc1d977e62cae2a2477119

Contents?: true

Size: 455 Bytes

Versions: 8

Compression:

Stored size: 455 Bytes

Contents

module Buildkite
  module Builder
    module Extensions
      class Agents < Extension
        def prepare
          context.data.agents = {}
        end

        dsl do
          def agents(*args)
            if args.first.is_a?(Hash)
              context.data.agents.merge!(args.first.transform_keys(&:to_s))
            else
              raise ArgumentError, 'value must be hash'
            end
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
buildkite-builder-4.16.0 lib/buildkite/builder/extensions/agents.rb
buildkite-builder-4.15.1 lib/buildkite/builder/extensions/agents.rb
buildkite-builder-4.15.0 lib/buildkite/builder/extensions/agents.rb
buildkite-builder-4.14.0 lib/buildkite/builder/extensions/agents.rb
buildkite-builder-4.13.0 lib/buildkite/builder/extensions/agents.rb
buildkite-builder-4.12.0 lib/buildkite/builder/extensions/agents.rb
buildkite-builder-4.11.0 lib/buildkite/builder/extensions/agents.rb
buildkite-builder-4.10.0 lib/buildkite/builder/extensions/agents.rb