mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
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:
parent
0b7eb60028
commit
366bc44d0d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue