mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
make installed? always return true/false
Dont return nil als a falsy result. Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
parent
38a77efb4a
commit
4965bfd36d
4 changed files with 4 additions and 4 deletions
|
@ -31,7 +31,7 @@ class GemPackage < Vulcano.resource(1)
|
|||
end
|
||||
|
||||
def installed?
|
||||
info[:installed]
|
||||
info[:installed] == true
|
||||
end
|
||||
|
||||
def version
|
||||
|
|
|
@ -29,7 +29,7 @@ class NpmPackage < Vulcano.resource(1)
|
|||
end
|
||||
|
||||
def installed?
|
||||
info[:installed]
|
||||
info[:installed] == true
|
||||
end
|
||||
|
||||
def version
|
||||
|
|
|
@ -38,7 +38,7 @@ class OneGetPackage < Vulcano.resource(1)
|
|||
end
|
||||
|
||||
def installed?
|
||||
info[:installed]
|
||||
info[:installed] == true
|
||||
end
|
||||
|
||||
def version
|
||||
|
|
|
@ -32,7 +32,7 @@ class PipPackage < Vulcano.resource(1)
|
|||
end
|
||||
|
||||
def installed?
|
||||
info[:installed]
|
||||
info[:installed] == true
|
||||
end
|
||||
|
||||
def version
|
||||
|
|
Loading…
Reference in a new issue