Sha256: 8e9134689528cdc10f00d07677d3cb0a625571ebbcee2caa932529a15aaeffea

Contents?: true

Size: 504 Bytes

Versions: 21

Compression:

Stored size: 504 Bytes

Contents

class Package
  def initialize(teuton_host, param)
    @teuton_host = teuton_host
    @parent = teuton_host.parent
    @host = teuton_host.host
    @param = param
  end

  def installed?
    @parent.target("Package #{@param} installed?")
    @parent.run "whereis #{@param}", on: @host
    @parent.expect_one ["bin", @param]
  end

  def not_installed?
    @parent.target("Package #{@param} not installed?")
    @parent.run "whereis #{@param}", on: @host
    @parent.expect_none ["bin", @param]
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
teuton-2.9.2 lib/teuton/case/builtin/package.rb
teuton-2.9.1 lib/teuton/case/builtin/package.rb
teuton-2.9.0 lib/teuton/case/builtin/package.rb
teuton-2.8.0 lib/teuton/case/builtin/package.rb
teuton-2.7.3 lib/teuton/case/builtin/package.rb
teuton-2.7.2 lib/teuton/case/builtin/package.rb
teuton-2.7.1 lib/teuton/case/builtin/package.rb
teuton-2.7.0 lib/teuton/case/builtin/package.rb
teuton-2.6.0 lib/teuton/case/builtin/package.rb
teuton-2.5.0 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.4.5 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.4.4 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.4.3 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.4.2 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.4.1 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.4.0 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.3.11 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.3.10 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.3.9 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.3.8 lib/teuton/case_manager/case/builtin/package.rb