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.1.1 lib/specinfra/command/smartos/base/service.rb
specinfra-2.1.0 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.4 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.3 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.2 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.1 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta52 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta51 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta50 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta49 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta48 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta47 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta46 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta45 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta44 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta43 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta42 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta41 lib/specinfra/command/smartos/base/service.rb
specinfra-2.0.0.beta40 lib/specinfra/command/smartos/base/service.rb