Sha256: c8d021022ef4cdcb962eb4cc1b28c6d76ab56700e9343667b191164f2135bb87
Contents?: true
Size: 628 Bytes
Versions: 2
Compression:
Stored size: 628 Bytes
Contents
module Serverspec module Type class Service < Base def enabled?(level=3) backend.check_enabled(@name, level) end def running?(under) if under check_method = "check_running_under_#{under}".to_sym unless backend.respond_to?(check_method) raise ArgumentError.new("`be_running` matcher doesn't support #{@under}") end backend.send(check_method, @name) else backend.check_running(@name) end end def has_property?(property) backend.check_svcprops(@name, property) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
serverspec-0.6.16 | lib/serverspec/type/service.rb |
serverspec-0.6.15 | lib/serverspec/type/service.rb |