Sha256: 1f5a962f2cc5537040928123cc8d9d93b3306a154d17592b440db23221b8551c
Contents?: true
Size: 492 Bytes
Versions: 3
Compression:
Stored size: 492 Bytes
Contents
class Specinfra::Command::Freebsd::V10::Package < Specinfra::Command::Freebsd::Base::Package class << self def check_is_installed(package, version=nil) if version "pkg query %v #{escape(package)} | grep -- #{escape(version)}" else "pkg info #{escape(package)}" end end def install(package, version=nil) "pkg install -y #{package}" end def get_version(package, opts=nil) "pkg query %v #{escape(package)}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems