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:
Dominik Richter 2015-09-17 20:51:06 +02:00
parent 38a77efb4a
commit 4965bfd36d
4 changed files with 4 additions and 4 deletions

View file

@ -31,7 +31,7 @@ class GemPackage < Vulcano.resource(1)
end end
def installed? def installed?
info[:installed] info[:installed] == true
end end
def version def version

View file

@ -29,7 +29,7 @@ class NpmPackage < Vulcano.resource(1)
end end
def installed? def installed?
info[:installed] info[:installed] == true
end end
def version def version

View file

@ -38,7 +38,7 @@ class OneGetPackage < Vulcano.resource(1)
end end
def installed? def installed?
info[:installed] info[:installed] == true
end end
def version def version

View file

@ -32,7 +32,7 @@ class PipPackage < Vulcano.resource(1)
end end
def installed? def installed?
info[:installed] info[:installed] == true
end end
def version def version