mirror of
https://github.com/inspec/inspec
synced 2024-11-30 08:30:39 +00:00
eases the removal of leading and trailing whitespace for powershell and vbscript
This commit is contained in:
parent
13e9a18946
commit
ca0506b6a3
1 changed files with 5 additions and 0 deletions
|
@ -36,6 +36,11 @@ module Inspec::Resources
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Removes leading and trailing whitespace from stdout
|
||||||
|
def strip
|
||||||
|
result.stdout.strip unless result.stdout.nil?
|
||||||
|
end
|
||||||
|
|
||||||
def to_s
|
def to_s
|
||||||
'Powershell'
|
'Powershell'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue