Sha256: b325547ff4a246bb25cdd5206f0827b4433d87dab1ba07cbe38c92e4ed496fcc

Contents?: true

Size: 436 Bytes

Versions: 15

Compression:

Stored size: 436 Bytes

Contents

module Buildkite
  module Builder
    class PluginManager
      def initialize
        @plugins = {}
      end

      def add(name, uri)
        name = name.to_s

        if @plugins.key?(name)
          raise ArgumentError, "Plugin already defined: #{name}"
        end

        @plugins[name] = uri
      end

      def fetch(name)
        @plugins[name]
      end

      def to_definition
        # No-op
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
buildkite-builder-3.4.0 lib/buildkite/builder/plugin_manager.rb
buildkite-builder-3.3.2 lib/buildkite/builder/plugin_manager.rb
buildkite-builder-3.3.1 lib/buildkite/builder/plugin_manager.rb
buildkite-builder-3.3.0 lib/buildkite/builder/plugin_manager.rb
buildkite-builder-3.2.0 lib/buildkite/builder/plugin_manager.rb
buildkite-builder-3.1.0 lib/buildkite/builder/plugin_manager.rb
buildkite-builder-3.0.0 lib/buildkite/builder/plugin_manager.rb
buildkite-builder-2.4.1 lib/buildkite/builder/plugin_manager.rb
buildkite-builder-2.4.0 lib/buildkite/builder/plugin_manager.rb
buildkite-builder-2.3.0 lib/buildkite/builder/plugin_manager.rb
buildkite-builder-2.2.0 lib/buildkite/builder/plugin_manager.rb
buildkite-builder-2.1.0 lib/buildkite/builder/plugin_manager.rb
buildkite-builder-2.0.0 lib/buildkite/builder/plugin_manager.rb
buildkite-builder-2.0.0.beta4 lib/buildkite/builder/plugin_manager.rb
buildkite-builder-2.0.0.beta3 lib/buildkite/builder/plugin_manager.rb