Sha256: a95b5ead45060df5861b0d692e8b7aba41a2929df20f08bff2bfd16068b153a1

Contents?: true

Size: 333 Bytes

Versions: 27

Compression:

Stored size: 333 Bytes

Contents

module FreeBSD::Pkg
  include Beaker::CommandFactory

  def install_package(name, cmdline_args = nil, opts = {})
    cmdline_args ||= '-y'
    execute("pkg install #{cmdline_args} #{name}", opts) { |result| result }
  end

  def check_for_package(name, opts = {})
    execute("pkg info #{name}", opts) { |result| result }
  end

end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
beaker-2.37.0 lib/beaker/host/freebsd/pkg.rb
beaker-2.36.0 lib/beaker/host/freebsd/pkg.rb
beaker-2.35.0 lib/beaker/host/freebsd/pkg.rb
beaker-2.34.0 lib/beaker/host/freebsd/pkg.rb
beaker-2.33.0 lib/beaker/host/freebsd/pkg.rb
beaker-2.32.1 lib/beaker/host/freebsd/pkg.rb
beaker-2.32.0 lib/beaker/host/freebsd/pkg.rb