Sha256: 20367be60f3c40772f94bb80270ab184eac9fabd38f85e80790f6ef56ae8888f

Contents?: true

Size: 682 Bytes

Versions: 125

Compression:

Stored size: 682 Bytes

Contents

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

    def enable(service)
      "chkconfig #{escape(service)} on"
    end

    def disable(service)
      "chkconfig #{escape(service)} off"
    end

    def start(service)
      "service #{escape(service)} start"
    end

    def stop(service)
      "service #{escape(service)} stop"
    end

    def restart(service)
      "service #{escape(service)} restart"
    end

    def reload(service)
      "service #{escape(service)} reload"
    end
  end
end







Version data entries

125 entries across 125 versions & 1 rubygems

Version Path
specinfra-2.9.2 lib/specinfra/command/redhat/base/service.rb
specinfra-2.9.1 lib/specinfra/command/redhat/base/service.rb
specinfra-2.9.0 lib/specinfra/command/redhat/base/service.rb
specinfra-2.8.0 lib/specinfra/command/redhat/base/service.rb
specinfra-2.7.0 lib/specinfra/command/redhat/base/service.rb
specinfra-2.6.0 lib/specinfra/command/redhat/base/service.rb
specinfra-2.5.0 lib/specinfra/command/redhat/base/service.rb
specinfra-2.4.5 lib/specinfra/command/redhat/base/service.rb
specinfra-2.4.4 lib/specinfra/command/redhat/base/service.rb
specinfra-2.4.3 lib/specinfra/command/redhat/base/service.rb
specinfra-2.4.2 lib/specinfra/command/redhat/base/service.rb
specinfra-2.4.1 lib/specinfra/command/redhat/base/service.rb
specinfra-2.4.0 lib/specinfra/command/redhat/base/service.rb
specinfra-2.3.2 lib/specinfra/command/redhat/base/service.rb
specinfra-2.3.1 lib/specinfra/command/redhat/base/service.rb
specinfra-2.3.0 lib/specinfra/command/redhat/base/service.rb
specinfra-2.2.4 lib/specinfra/command/redhat/base/service.rb
specinfra-2.2.3 lib/specinfra/command/redhat/base/service.rb
specinfra-2.2.2 lib/specinfra/command/redhat/base/service.rb
specinfra-2.2.1 lib/specinfra/command/redhat/base/service.rb