def every_service_is_stopped(step): for data in step.hashes: step_assert(step).assert_true(utils.service(data['ServiceName']).stopped())
def restart_services(step): for data in step.hashes: step_assert(step).assert_true(utils.service(data['ServiceName']).restart())
def stop_services(step): for data in step.hashes: step_assert(step).assert_true(utils.service(data['ServiceName']).stop())
def every_service_is_running(step): for data in step.hashes: step_assert(step).assert_true(utils.service(data['ServiceName']).running())