Sha256: 81d6a38b50956d9c31e62ab969b938783502b40b8600861e90039f3dca7178cc

Contents?: true

Size: 541 Bytes

Versions: 9

Compression:

Stored size: 541 Bytes

Contents

class Specinfra::Command::Arch::Base::Package < Specinfra::Command::Linux::Base::Package
  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)
    "pacman -S --noconfirm #{package}"
  end

  # Should this method be here or not ?
  def sync_repos
    "pacman -Syy"
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
specinfra-2.0.0.beta15 lib/specinfra/command/arch/base/package.rb
specinfra-2.0.0.beta14 lib/specinfra/command/arch/base/package.rb
specinfra-2.0.0.beta13 lib/specinfra/command/arch/base/package.rb
specinfra-2.0.0.beta12 lib/specinfra/command/arch/base/package.rb
specinfra-2.0.0.beta11 lib/specinfra/command/arch/base/package.rb
specinfra-2.0.0.beta10 lib/specinfra/command/arch/base/package.rb
specinfra-2.0.0.beta9 lib/specinfra/command/arch/base/package.rb
specinfra-2.0.0.beta8 lib/specinfra/command/arch/base/package.rb
specinfra-2.0.0.beta7 lib/specinfra/command/arch/base/package.rb