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.0.0.beta39 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta38 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta37 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta36 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta35 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta34 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta33 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta32 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta31 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta30 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta29 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta28 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta27 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta26 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta25 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta24 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta23 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta22 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta21 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta20 lib/specinfra/command/smartos/base/service.rb