Sha256: 55d6972c31de7bf0901cbc27a8228389c9956730b19860fd965735aaada04d9d

Contents?: true

Size: 519 Bytes

Versions: 22

Compression:

Stored size: 519 Bytes

Contents

class Specinfra::Command::Freebsd::Base::Package < Specinfra::Command::Base::Package
  class << self
    def check_is_installed(package, version=nil)
      if version
        "pkg_info -I #{escape(package)}-#{escape(version)}"
      else
        "pkg_info -Ix #{escape(package)}"
      end
    end

    def install(package)
      "pkg_add -r install #{package}"
    end

    def get_version(package, opts=nil)
      "pkg_info -Ix #{escape(package)} | cut -f 1 -w | sed -n 's/^#{escape(package)}-//p'"
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
specinfra-2.0.0.beta37 lib/specinfra/command/freebsd/base/package.rb
specinfra-2.0.0.beta36 lib/specinfra/command/freebsd/base/package.rb
specinfra-2.0.0.beta35 lib/specinfra/command/freebsd/base/package.rb
specinfra-2.0.0.beta34 lib/specinfra/command/freebsd/base/package.rb
specinfra-2.0.0.beta33 lib/specinfra/command/freebsd/base/package.rb
specinfra-2.0.0.beta32 lib/specinfra/command/freebsd/base/package.rb
specinfra-2.0.0.beta31 lib/specinfra/command/freebsd/base/package.rb
specinfra-2.0.0.beta30 lib/specinfra/command/freebsd/base/package.rb
specinfra-2.0.0.beta29 lib/specinfra/command/freebsd/base/package.rb
specinfra-2.0.0.beta28 lib/specinfra/command/freebsd/base/package.rb
specinfra-2.0.0.beta27 lib/specinfra/command/freebsd/base/package.rb
specinfra-2.0.0.beta26 lib/specinfra/command/freebsd/base/package.rb
specinfra-2.0.0.beta25 lib/specinfra/command/freebsd/base/package.rb
specinfra-2.0.0.beta24 lib/specinfra/command/freebsd/base/package.rb
specinfra-2.0.0.beta23 lib/specinfra/command/freebsd/base/package.rb
specinfra-2.0.0.beta22 lib/specinfra/command/freebsd/base/package.rb
specinfra-2.0.0.beta21 lib/specinfra/command/freebsd/base/package.rb
specinfra-2.0.0.beta20 lib/specinfra/command/freebsd/base/package.rb
specinfra-2.0.0.beta19 lib/specinfra/command/freebsd/base/package.rb
specinfra-2.0.0.beta18 lib/specinfra/command/freebsd/base/package.rb