Sha256: b41d7dde41a8c6342c19af785c214b86d0957705bebc63c5157a7e920f5b4208

Contents?: true

Size: 409 Bytes

Versions: 13

Compression:

Stored size: 409 Bytes

Contents

class Package
  attr_accessor :param

  def initialize(parent)
    @parent = parent
  end

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

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
teuton-2.1.10 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.1.9 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.1.8 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.1.8dev1 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.1.7 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.1.6 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.1.5dev lib/teuton/case_manager/case/builtin/package.rb
teuton-2.1.4 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.1.3 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.1.2 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.1.1 lib/teuton/case_manager/case/builtin/package.rb
teuton-2.1.0 lib/teuton/case_manager/case/builtin/package.rb
teuton-0.0.1 lib/teuton/case_manager/case/builtin/package.rb