Sha256: 65a438d5480b3e6612c599b0ed169d1bb3e0f447812f00969788966b0f16e581

Contents?: true

Size: 290 Bytes

Versions: 9

Compression:

Stored size: 290 Bytes

Contents

class Specinfra::Command::Darwin::Base::Service < Specinfra::Command::Base::Service
  def check_is_enabled(service, level=nil)
    "launchctl list | grep #{escape(service)}"
  end

  def check_is_running(service)
    "launchctl list | grep #{escape(service)} | grep -E '^[0-9]+'"
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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