lib/specinfra/command/redhat/base/service.rb in specinfra-2.0.0.beta15 vs lib/specinfra/command/redhat/base/service.rb in specinfra-2.0.0.beta16

- old
+ new

@@ -1,7 +1,9 @@ class Specinfra::Command::Redhat::Base::Service < Specinfra::Command::Linux::Base::Service - def check_is_enabled(service, level=3) - "chkconfig --list #{escape(service)} | grep #{level}:on" + class << self + def check_is_enabled(service, level=3) + "chkconfig --list #{escape(service)} | grep #{level}:on" + end end end