Sha256: e7adc03fe41fb601a17b62e5fcb03fb8e2ee793d8c25679080d3802e3a71b51f
Contents?: true
Size: 292 Bytes
Versions: 2
Compression:
Stored size: 292 Bytes
Contents
class PackageManger def initialize(name, pkgs) @name = name @pkgs = pkgs end def install() case @name when 'apt' out = %x[sudo apt-get -y install #{@pkgs}] when 'gem' out = %x[gem install #{@pkgs}] end puts out end def check(pkg) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
clenver-0.1.13 | lib/clenver/package_manager.rb |
clenver-0.1.12 | lib/clenver/package_manager.rb |