vendored/puppet/lib/puppet/application/script.rb in bolt-0.5.1 vs vendored/puppet/lib/puppet/application/script.rb in bolt-0.6.0

- old
+ new

@@ -111,10 +111,16 @@ :default_file_terminus => :file_server, }) end def run_command - main + if Puppet.features.bolt? + Puppet.override(:bolt_executor => Bolt::Executor.new) do + main + end + else + raise _("Bolt must be installed to use the script application") + end end def main # The tasks feature is always on Puppet[:tasks] = true