mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +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
|
||||
end
|
||||
|
||||
# Removes leading and trailing whitespace from stdout
|
||||
def strip
|
||||
result.stdout.strip unless result.stdout.nil?
|
||||
end
|
||||
|
||||
def to_s
|
||||
'Powershell'
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue