From 6200be6fbf1f05665158e9ce8b218433f2440240 Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 19 Nov 2014 11:37:45 -0800 Subject: test if soledad daemon is running --- bin/run_tests | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bin') diff --git a/bin/run_tests b/bin/run_tests index b3e60fcc..4addc0c8 100755 --- a/bin/run_tests +++ b/bin/run_tests @@ -35,6 +35,14 @@ def bail(code, msg=nil) end end +## +## UTILITY +## + +def service?(service) + $node["services"].include?(service.to_s) +end + ## ## EXCEPTIONS ## -- cgit v1.2.3