Sha256: 253953eee2362c75e5983cb7c12c9014201ffe6d9d08dbd418523910bfd77019
Contents?: true
Size: 520 Bytes
Versions: 9
Compression:
Stored size: 520 Bytes
Contents
module Serverspec module Commands class Solaris < Base def check_enabled service "svcs -l #{service} 2> /dev/null | grep 'enabled true'" end def check_installed package "pkg list -H #{package} 2> /dev/null" end def check_listening port "netstat -an -P tcp 2> /dev/null | grep LISTEN | grep '\.#{port} '" end def check_running service "svcs -l #{service} status 2> /dev/null |grep 'state online'" end end end end
Version data entries
9 entries across 9 versions & 1 rubygems