lib/bolt/plugin/task.rb in bolt-1.29.1 vs lib/bolt/plugin/task.rb in bolt-1.30.0
- old
+ new
@@ -84,8 +84,16 @@
raise Bolt::ValidationError, msg
end
targets
end
+
+ def puppet_library(opts, target, apply_prep)
+ params = opts['parameters'] || {}
+ task = apply_prep.get_task(opts['task'], params)
+ proc do
+ apply_prep.run_task([target], task, params).first
+ end
+ end
end
end
end