Sha256: 1f9d972a2172e7e6ef5a4a9c2e16b70d710ec6cceae6ede18e1c92c29058bd7d

Contents?: true

Size: 497 Bytes

Versions: 1

Compression:

Stored size: 497 Bytes

Contents

# frozen_string_literal: true

module Buildkite
  module Pipelines
    module Helpers
      module Plugins
        def plugin(name_or_source, options = nil)
          append(:plugins, plugin_collection.add(name_or_source, options).to_h)
        end

        def plugins
          plugin_collection
        end

        private

        def plugin_collection
          @plugin_collection ||= Buildkite::Builder::PluginCollection.new(step_collection.plugins)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
buildkite-builder-2.0.0.beta3 lib/buildkite/pipelines/helpers/plugins.rb