Class: Specinfra::Command::Fedora::Base::Service

Inherits:
Redhat::Base::Service show all
Defined in:
lib/specinfra/command/fedora/base/service.rb

Direct Known Subclasses

V15::Service

Class Method Summary collapse

Methods inherited from Redhat::Base::Service

check_is_enabled, disable, enable, reload, restart, start, stop

Methods inherited from Base::Service

check_is_monitored_by_god, check_is_monitored_by_monit, check_is_running, check_is_running_under_daemontools, check_is_running_under_runit, check_is_running_under_supervisor, check_is_running_under_upstart

Methods inherited from Base

escape

Class Method Details

.createObject



3
4
5
6
7
8
9
# File 'lib/specinfra/command/fedora/base/service.rb', line 3

def create
  if os[:release].to_i < 15
    self
  else
    Specinfra::Command::Fedora::V15::Service
  end
end