Sha256: 1ef728885abdd3f9787294548d356a3446c7802dd1f6760c266d5367d460aa6f
Contents?: true
Size: 479 Bytes
Versions: 22
Compression:
Stored size: 479 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) "pkg install -y #{package}" end def get_version(package, opts=nil) "pkg query %v #{escape(package)}" end end end
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
specinfra-2.0.0.beta17 | lib/specinfra/command/freebsd/v10/package.rb |
specinfra-2.0.0.beta16 | lib/specinfra/command/freebsd/v10/package.rb |