From e87e7c63b5529afd692ae8ba4d26a9e1b44290be Mon Sep 17 00:00:00 2001 From: Cezary Baginski Date: Sat, 6 Jun 2015 23:30:49 +0200 Subject: [PATCH] add patch to reset Puppet config --- lib/guard/puppet/runner.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/guard/puppet/runner.rb b/lib/guard/puppet/runner.rb index 647ec70..535b576 100644 --- a/lib/guard/puppet/runner.rb +++ b/lib/guard/puppet/runner.rb @@ -21,6 +21,12 @@ module Guard begin maybe_bundle_with_env do + # TODO: hack, untested, needed to avoid: + # + #"Error: Could not initialize global default settings: + # Attempting to initialize global default settings more than once!" + ::Puppet.settings.send(:clear_everything_for_tests) + ::Puppet::Util::CommandLine.new('puppet', command_line_params).execute end 0