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