lib/serverspec/backend/exec.rb in serverspec-0.6.12 vs lib/serverspec/backend/exec.rb in serverspec-0.6.13
- old
+ new
@@ -58,19 +58,19 @@
# Default action is to call check_zero with args
def method_missing(meth, *args, &block)
check_zero(meth, *args)
end
- def check_running(process)
- ret = run_command(commands.check_running(process))
+ def check_running(process, level)
+ ret = run_command(commands.check_running(process, level))
if ret[:exit_status] == 1 || ret[:stdout] =~ /stopped/
ret = run_command(commands.check_process(process))
end
ret[:exit_status] == 0
end
- def check_running_under_supervisor(process)
- ret = run_command(commands.check_running_under_supervisor(process))
+ def check_running_under_supervisor(process, level)
+ ret = run_command(commands.check_running_under_supervisor(process, level))
ret[:exit_status] == 0 && ret[:stdout] =~ /RUNNING/
end
def check_readable(file, by_whom)
mode = sprintf('%04s',run_command(commands.get_mode(file))[:stdout].strip)