Sha256: f8012072d4590afee664fb5dad2d83d4e631011ccffbca53471f7626dd156da4

Contents?: true

Size: 409 Bytes

Versions: 14

Compression:

Stored size: 409 Bytes

Contents

# frozen_string_literal: true

module Buildkite
  module Pipelines
    class Plugin
      attr_reader :uri, :version, :options

      def initialize(uri, version, options = nil)
        @uri = uri
        @version = version
        @options = options
      end

      def full_uri
        "#{uri}##{version}"
      end

      def to_h
        Helpers.sanitize(full_uri => options)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
buildkite-builder-2.0.0.beta2 lib/buildkite/pipelines/plugin.rb
buildkite-builder-2.0.0.beta1 lib/buildkite/pipelines/plugin.rb
buildkite-builder-1.4.1 lib/buildkite/pipelines/plugin.rb
buildkite-builder-1.4.0 lib/buildkite/pipelines/plugin.rb
buildkite-builder-1.3.1 lib/buildkite/pipelines/plugin.rb
buildkite-builder-1.3.0 lib/buildkite/pipelines/plugin.rb
buildkite-builder-1.2.0 lib/buildkite/pipelines/plugin.rb
buildkite-builder-1.1.0 lib/buildkite/pipelines/plugin.rb
buildkite-builder-1.0.0 lib/buildkite/pipelines/plugin.rb
buildkite-builder-1.0.0.beta.5 lib/buildkite/pipelines/plugin.rb
buildkite-builder-1.0.0.beta.4 lib/buildkite/pipelines/plugin.rb
buildkite-builder-1.0.0.beta.3 lib/buildkite/pipelines/plugin.rb
buildkite-builder-1.0.0.beta.2 lib/buildkite/pipelines/plugin.rb
buildkite-builder-1.0.0.beta.1 lib/buildkite/pipelines/plugin.rb