lib/kitchen/verifier/pester.rb in kitchen-pester-0.4.0 vs lib/kitchen/verifier/pester.rb in kitchen-pester-0.5.0

- old
+ new

@@ -75,10 +75,12 @@ cmd = <<-CMD set-executionpolicy unrestricted -force if (-not (get-module -list pester)) { if (get-module -list PowerShellGet){ import-module PowerShellGet -force + import-module PackageManagement -force + get-packageprovider -name NuGet -force | out-null install-module Pester -force } else { if (-not (get-module -list PsGet)){ iex (new-object Net.WebClient).DownloadString('http://bit.ly/GetPsGet') @@ -127,11 +129,11 @@ #private def restart_winrm_service - cmd = 'schtasks /Create /TN restart_winrm /TR ' / - '"powershell -command restart-service winrm" ' / + cmd = 'schtasks /Create /TN restart_winrm /TR ' \ + '"powershell -command restart-service winrm" ' \ '/SC ONCE /ST 00:00 ' wrap_shell_code(Util.outdent!(<<-CMD #{cmd} schtasks /RUN /TN restart_winrm CMD