Sha256: 587fae5b76e29a973d0f12fd80a1512c305d77b969a112d4750f1572dca98d26

Contents?: true

Size: 510 Bytes

Versions: 8

Compression:

Stored size: 510 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

8 entries across 8 versions & 1 rubygems

Version Path
teuton-2.3.6 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.3.5 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.3.4 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.3.3 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.3.2 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.3.1 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.2.2 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.1.11 lib/teuton/case_manager/case/builtin/package.rb