eases the removal of leading and trailing whitespace for powershell and vbscript

This commit is contained in:
Christoph Hartmann 2016-03-26 22:25:53 +01:00
parent 13e9a18946
commit ca0506b6a3

View file

@ -36,6 +36,11 @@ module Inspec::Resources
nil
end
# Removes leading and trailing whitespace from stdout
def strip
result.stdout.strip unless result.stdout.nil?
end
def to_s
'Powershell'
end