class Package
Public Class Methods
new(teuton_host, param)
click to toggle source
# File lib/teuton/case_manager/case/builtin/package.rb, line 3 def initialize(teuton_host, param) @teuton_host = teuton_host @parent = teuton_host.parent @host = teuton_host.host @param = param end
Public Instance Methods
installed?()
click to toggle source
# File lib/teuton/case_manager/case/builtin/package.rb, line 10 def installed? @parent.target("Package #{@param} installed?") @parent.run "whereis #{@param}", on: @host @parent.expect_one [ 'bin', @param ] end
not_installed?()
click to toggle source
# File lib/teuton/case_manager/case/builtin/package.rb, line 16 def not_installed? @parent.target("Package #{@param} not installed?") @parent.run "whereis #{@param}", on: @host @parent.expect_none [ 'bin' , @param ] end