Sha256: 18270020d63d1d45d50f278459157e218977ae1d8f133f1cd9ed7452348881a5
Contents?: true
Size: 420 Bytes
Versions: 22
Compression:
Stored size: 420 Bytes
Contents
class Specinfra::Command::Openbsd::Base::Package < Specinfra::Command::Base::Package class << self def check_is_installed(package, version=nil) if version "pkg_info -a | cut -d ' ' -f 1 | grep #{escape(package)}-#{escape(version)}" else "pkg_info -a | cut -d ' ' -f 1 | grep #{escape(package)}" end end def install(package) "pkg_add #{package}" end end end
Version data entries
22 entries across 22 versions & 1 rubygems