lib/buildkite/builder/plugin_manager.rb in buildkite-builder-3.4.0 vs lib/buildkite/builder/plugin_manager.rb in buildkite-builder-3.5.0

- old
+ new

@@ -3,17 +3,20 @@ class PluginManager def initialize @plugins = {} end - def add(name, uri) + def add(name, uri, default_attributes = {}) name = name.to_s if @plugins.key?(name) raise ArgumentError, "Plugin already defined: #{name}" end - @plugins[name] = uri + @plugins[name] = { + uri: uri, + default_attributes: default_attributes + } end def fetch(name) @plugins[name] end