Sha256: ee202d07ede71ed12f81bba48aa243746435cd2c58664f28572b1b88c85de0b0

Contents?: true

Size: 563 Bytes

Versions: 25

Compression:

Stored size: 563 Bytes

Contents

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

    def check_is_enabled_under_homebrew(service)
      "brew services list | grep #{escape(service)}"
    end

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

    def check_is_running_under_homebrew(service)
      "brew services list | grep #{escape(service)} | grep 'started'"
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
specinfra-2.91.0 lib/specinfra/command/darwin/base/service.rb
specinfra-2.90.1 lib/specinfra/command/darwin/base/service.rb
specinfra-2.90.0 lib/specinfra/command/darwin/base/service.rb
specinfra-2.89.0 lib/specinfra/command/darwin/base/service.rb
specinfra-2.88.2 lib/specinfra/command/darwin/base/service.rb
specinfra-2.88.1 lib/specinfra/command/darwin/base/service.rb
specinfra-2.88.0 lib/specinfra/command/darwin/base/service.rb
specinfra-2.87.2 lib/specinfra/command/darwin/base/service.rb
specinfra-2.87.1 lib/specinfra/command/darwin/base/service.rb
specinfra-2.87.0 lib/specinfra/command/darwin/base/service.rb
specinfra-2.86.0 lib/specinfra/command/darwin/base/service.rb
specinfra-2.85.1 lib/specinfra/command/darwin/base/service.rb
specinfra-2.85.0 lib/specinfra/command/darwin/base/service.rb
specinfra-2.84.1 lib/specinfra/command/darwin/base/service.rb
specinfra-2.84.0 lib/specinfra/command/darwin/base/service.rb
specinfra-2.83.4 lib/specinfra/command/darwin/base/service.rb
specinfra-2.83.3 lib/specinfra/command/darwin/base/service.rb
specinfra-2.83.2 lib/specinfra/command/darwin/base/service.rb
specinfra-2.83.1 lib/specinfra/command/darwin/base/service.rb
specinfra-2.83.0 lib/specinfra/command/darwin/base/service.rb