lib/buildkite/builder/extensions/steps.rb in buildkite-builder-2.0.0.beta2 vs lib/buildkite/builder/extensions/steps.rb in buildkite-builder-2.0.0.beta3

- old
+ new

@@ -2,23 +2,23 @@ module Builder module Extensions class Steps < Extension def prepare context.data.steps = StepCollection.new( - TemplateRegistry.new(context.root), - PluginRegistry.new + TemplateManager.new(context.root), + PluginManager.new ) end dsl do def group(label = nil, &block) raise "Group does not allow nested in another Group" if context.is_a?(Group) context.data.steps.push(Buildkite::Builder::Group.new(label, context.data.steps, &block)) end - def plugin(name, uri, version) - context.data.steps.plugins.add(name, uri, version) + def plugin(name, uri) + context.data.steps.plugins.add(name, uri) end def block(template = nil, **args, &block) context.data.steps.add(Pipelines::Steps::Block, template, **args, &block) end