diff options
Diffstat (limited to 'lib/chef/powershell.rb')
-rw-r--r-- | lib/chef/powershell.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/powershell.rb b/lib/chef/powershell.rb index 3fe58b254b..2de0bfe40b 100644 --- a/lib/chef/powershell.rb +++ b/lib/chef/powershell.rb @@ -35,11 +35,13 @@ class Chef # @return [Object] output def initialize(script) raise "Chef::PowerShell can only be used on the Windows platform." unless RUBY_PLATFORM =~ /mswin|mingw32|windows/ + exec(script) end def error? return true if errors.count > 0 + false end |