lib/serverspec/backend/exec.rb in serverspec-0.4.8 vs lib/serverspec/backend/exec.rb in serverspec-0.4.9
- old
+ new
@@ -33,19 +33,9 @@
# Remove example object from *args
@example = args.shift
check_zero(meth, *args)
end
- def check_installed_by_gem(example, package, version)
- @example = example
- ret = run_command(commands.check_installed_by_gem(package))
- res = ret[:exit_status] == 0
- if res && version
- res = false if not ret[:stdout].match(/\(#{version}\)/)
- end
- res
- end
-
def check_running(example, process)
@example = example
ret = run_command(commands.check_running(process))
if ret[:exit_status] == 1 || ret[:stdout] =~ /stopped/
ret = run_command(commands.check_process(process))