Sha256: 032afe3ef8b0fdd8361e3c9c4f5ab5a125e9f9efd52e3710290b9d0f05101e27
Contents?: true
Size: 473 Bytes
Versions: 5
Compression:
Stored size: 473 Bytes
Contents
module Specinfra module Command class FreeBSD10 < FreeBSD def check_installed(package, version=nil) if version "pkg query %v #{escape(package)} | grep -- #{escape(version)}" else "pkg info #{escape(package)}" end end def install(package) "pkg install -y #{package}" end def get_package_version(package, opts=nil) "pkg query %v #{escape(package)}" end end end end
Version data entries
5 entries across 5 versions & 1 rubygems