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

- old
+ new

@@ -1,9 +1,11 @@ class Specinfra::Command::Plamo::Base::Service < Specinfra::Command::Linux::Base::Service - def check_is_enabled(service, level=3) - # This check is not necessarily detected whether service is enabled or not - # TODO: check rc.inet2 $SERV variable - "test -x /etc/rc.d/init.d/#{escape(service)}" + class << self + def check_is_enabled(service, level=3) + # This check is not necessarily detected whether service is enabled or not + # TODO: check rc.inet2 $SERV variable + "test -x /etc/rc.d/init.d/#{escape(service)}" + end end end