bolt-modules/boltlib/lib/puppet/functions/fail_plan.rb in bolt-0.16.4 vs bolt-modules/boltlib/lib/puppet/functions/fail_plan.rb in bolt-0.17.0

- old
+ new

@@ -1,11 +1,10 @@ +require 'bolt/error' + # Raises a Bolt::PlanFailure exception to signal to callers that the plan failed # # Plan authors should call this function when their plan is not successful. The # error may then be caught by another plans run_plan function or in bolt itself - -require 'bolt/error' - Puppet::Functions.create_function(:fail_plan) do dispatch :from_args do param 'String[1]', :msg optional_param 'String[1]', :kind optional_param 'Hash[String[1], Any]', :details