Sha256: bb4458d4da7b69965ddb870184eb40beb0aa17564dc1e2b1af68161fd7df2e33

Contents?: true

Size: 444 Bytes

Versions: 7

Compression:

Stored size: 444 Bytes

Contents

# frozen_string_literal: true

module Buildkite
  module Pipelines
    module Helpers
      module Plugins
        def plugin(name_or_source, plugin_attributes = {})
          attributes['plugins'] ||= Buildkite::Builder::PluginCollection.new(step_collection.plugins)
          attributes['plugins'].add(name_or_source, plugin_attributes)
        end

        def plugins
          attributes['plugins']
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
buildkite-builder-3.8.3 lib/buildkite/pipelines/helpers/plugins.rb
buildkite-builder-3.8.2 lib/buildkite/pipelines/helpers/plugins.rb
buildkite-builder-3.8.1 lib/buildkite/pipelines/helpers/plugins.rb
buildkite-builder-3.8.0 lib/buildkite/pipelines/helpers/plugins.rb
buildkite-builder-3.7.0 lib/buildkite/pipelines/helpers/plugins.rb
buildkite-builder-3.6.0 lib/buildkite/pipelines/helpers/plugins.rb
buildkite-builder-3.5.0 lib/buildkite/pipelines/helpers/plugins.rb