Sha256: 122af138e484fc03af078857835d0ed2d89650cef7c6fe744a5b4a23a5dfae23
Contents?: true
Size: 335 Bytes
Versions: 6
Compression:
Stored size: 335 Bytes
Contents
module Serverspec module Commands class SmartOS < Serverspec::Commands::Solaris def check_installed(package, version=nil) cmd = "/opt/local/bin/pkgin list 2> /dev/null | grep -qw ^#{escape(package)}" if version cmd = "#{cmd}-#{escape(version)}" end cmd end end end end
Version data entries
6 entries across 6 versions & 1 rubygems