bugfix: always ensure the script resource is properly initialized, even if the os is not supported

This commit is contained in:
Christoph Hartmann 2015-12-11 14:53:47 +01:00
parent 1a38799a83
commit 90e1eb9e39

View file

@ -26,6 +26,7 @@ class Script < Cmd
script = WinRM::PowershellScript.new(script)
cmd = "powershell -encodedCommand #{script.encoded}"
else
cmd = ''
return skip_resource 'The `script` resource is not supported on your OS yet.'
end
super(cmd)