Sha256: ea02589cb150d7006df4fd0e22fe1f70b95e29538fc91fb55551a07814a93d33

Contents?: true

Size: 611 Bytes

Versions: 9

Compression:

Stored size: 611 Bytes

Contents

class Specinfra::Command::Base::Service < Specinfra::Command::Base
  def check_is_running(service)
    "service #{escape(service)} status"
  end

  def check_is_installed(service, level=3)
    raise NotImplementedError.new
  end

  def check_is_running_under_supervisor(service)
    "supervisorctl status #{escape(service)} | grep RUNNING"
  end

  def check_is_running_under_upstart(service)
    "initctl status #{escape(service)} | grep running"
  end

  def check_is_monitored_by_monit(service)
    "monit status"
  end

  def check_is_monitored_by_god(service)
    "god status #{escape(service)}"
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
specinfra-2.0.0.beta15 lib/specinfra/command/base/service.rb
specinfra-2.0.0.beta14 lib/specinfra/command/base/service.rb
specinfra-2.0.0.beta13 lib/specinfra/command/base/service.rb
specinfra-2.0.0.beta12 lib/specinfra/command/base/service.rb
specinfra-2.0.0.beta11 lib/specinfra/command/base/service.rb
specinfra-2.0.0.beta10 lib/specinfra/command/base/service.rb
specinfra-2.0.0.beta9 lib/specinfra/command/base/service.rb
specinfra-2.0.0.beta8 lib/specinfra/command/base/service.rb
specinfra-2.0.0.beta7 lib/specinfra/command/base/service.rb