lib/specinfra/command/arch.rb in specinfra-1.1.0 vs lib/specinfra/command/arch.rb in specinfra-1.1.1

- old
+ new

@@ -3,11 +3,12 @@ class Arch < Linux def check_access_by_user(file, user, access) "runuser -s /bin/sh -c \"test -#{access} #{file}\" #{user}" end - def check_enabled(service, target="multi-user.target") - "systemctl --plain list-dependencies #{target} | grep '^#{escape(service)}.service$'" + def check_enabled(service, level) + level = "multi-user.target" if level == 3 + "systemctl --plain list-dependencies #{level} | grep '^#{escape(service)}.service$'" end def check_running(service) "systemctl is-active #{escape(service)}.service" end