Sha256: 7d658b97de503a639dc100b9c750158611a201cc7f11f24767933171b80a56a9

Contents?: true

Size: 378 Bytes

Versions: 9

Compression:

Stored size: 378 Bytes

Contents

class Specinfra::Command::Openbsd::Base::Package < Specinfra::Command::Base::Package
  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

Version data entries

9 entries across 9 versions & 1 rubygems

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