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