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