Method: Specinfra::Command::Solaris::Base::Service.check_has_property
- Defined in:
- lib/specinfra/command/solaris/base/service.rb
.check_has_property(svc, property) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/specinfra/command/solaris/base/service.rb', line 11 def check_has_property(svc, property) commands = [] property.sort.each do |key, value| regexp = "^#{value}$" commands << "svcprop -p #{escape(key)} #{escape(svc)} | grep -- #{escape(regexp)}" end commands.join(' && ') end |