rename command().exists? -> command().exist?

This is in line with Ruby 2.1 changes in renaming File and Dir exists? to exist?
See previous commit

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
Dominik Richter 2015-09-18 12:40:53 +02:00
parent 0b7eb60028
commit 366bc44d0d

View file

@ -24,7 +24,7 @@ class Cmd < Vulcano.resource(1)
result.exit_status.to_i
end
def exists?
def exist?
res = vulcano.run_command("type \"#{@command}\" > /dev/null")
res.exit_status.to_i == 0
end