lib/bolt/shell/powershell.rb in bolt-2.42.0 vs lib/bolt/shell/powershell.rb in bolt-2.44.0

- old
+ new

@@ -25,11 +25,11 @@ msg = "Detected PowerShell 2 on one or more targets.\nPowerShell 2 "\ "is deprecated, and support will be removed in Bolt 3.0. See "\ "bolt-debug.log or run with '--log-level debug' to see the full "\ "list of targets with PowerShell 2." - Bolt::Logger.deprecation_warning("PowerShell 2", msg) + Bolt::Logger.deprecate_once("powershell_2", msg) @logger.debug("Detected PowerShell 2 on #{target}.") end end def provided_features @@ -161,10 +161,10 @@ ensure if owner && @tmpdir if target.options['cleanup'] rmdir(@tmpdir) else - @logger.warn("Skipping cleanup of tmpdir '#{@tmpdir}'") + Bolt::Logger.warn("Skipping cleanup of tmpdir '#{@tmpdir}'", "skip_cleanup") end end end def run_ps_task(task_path, arguments, input_method)