Sha256: 339177e7cd94a776e74dbfac05afd0f871365d8399dff68d967cdfbf94d0a22c

Contents?: true

Size: 376 Bytes

Versions: 104

Compression:

Stored size: 376 Bytes

Contents

class Specinfra::Command::Smartos::Base::Service < Specinfra::Command::Solaris::Base::Service
  class << self
    def check_is_enabled(service, level=nil)
      "svcs -l #{escape(service)} 2> /dev/null | grep -wx '^enabled.*true$'"
    end

    def check_is_running(service)
      "svcs -l #{escape(service)} status 2> /dev/null |grep -wx '^state.*online$'"
    end
  end
end

Version data entries

104 entries across 104 versions & 1 rubygems

Version Path
specinfra-2.18.1 lib/specinfra/command/smartos/base/service.rb
specinfra-2.18.0 lib/specinfra/command/smartos/base/service.rb
specinfra-2.17.1 lib/specinfra/command/smartos/base/service.rb
specinfra-2.17.0 lib/specinfra/command/smartos/base/service.rb
specinfra-2.16.0 lib/specinfra/command/smartos/base/service.rb
specinfra-2.15.2 lib/specinfra/command/smartos/base/service.rb
specinfra-2.15.1 lib/specinfra/command/smartos/base/service.rb
specinfra-2.15.0 lib/specinfra/command/smartos/base/service.rb
specinfra-2.14.4 lib/specinfra/command/smartos/base/service.rb
specinfra-2.14.3 lib/specinfra/command/smartos/base/service.rb
specinfra-2.14.2 lib/specinfra/command/smartos/base/service.rb
specinfra-2.14.1 lib/specinfra/command/smartos/base/service.rb
specinfra-2.14.0 lib/specinfra/command/smartos/base/service.rb
specinfra-2.13.1 lib/specinfra/command/smartos/base/service.rb
specinfra-2.13.0 lib/specinfra/command/smartos/base/service.rb
specinfra-2.12.7 lib/specinfra/command/smartos/base/service.rb
specinfra-2.12.6 lib/specinfra/command/smartos/base/service.rb
specinfra-2.12.5 lib/specinfra/command/smartos/base/service.rb
specinfra-2.12.4 lib/specinfra/command/smartos/base/service.rb
specinfra-2.12.3 lib/specinfra/command/smartos/base/service.rb