Sha256: 2b4d42c92c062af4f040d977b20fc304371763ff25d4f7a3856b5a02930f9362
Contents?: true
Size: 670 Bytes
Versions: 3
Compression:
Stored size: 670 Bytes
Contents
class Specinfra::Command::Arch::Base::Package < Specinfra::Command::Linux::Base::Package class << self def check_is_installed(package,version=nil) if version "pacman -Q | grep #{escape(package)} #{escape(version)}" else "pacman -Q | grep #{escape(package)}" end end def get_version(package, opts=nil) "pacman -Qi #{package} | grep Version | awk '{print $3}'" end def install(package, version=nil) # Pacman doesn't support to install specific version. "pacman -S --noconfirm #{package}" end # Should this method be here or not ? def sync_repos "pacman -Syy" end end end
Version data entries
3 entries across 3 versions & 1 rubygems