Sha256: b0154047405971788eb6b59685799d63ed3c7125c2ad557b6d10c467318909c5
Contents?: true
Size: 581 Bytes
Versions: 3
Compression:
Stored size: 581 Bytes
Contents
module Divvy module Plugins module Apt def apt(*packages) packages.flatten! options = { :dependencies_only => false } options.update(packages.pop) if packages.last.is_a?(Hash) command = [ "DEBCONF_TERSE='yes' DEBIAN_PRIORITY='critical' DEBIAN_FRONTEND=noninteractive" ] command << 'apt-get -qyu' command << (options[:dependencies_only] ? 'build-dep' : 'install') command << packages run(command.join(' ')) end end end end register_plugin(Divvy::Plugins::Apt)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mdwan-divvy-0.1.0 | lib/divvy/plugins/apt.rb |
mdwan-divvy-0.1.1 | lib/divvy/plugins/apt.rb |
mdwan-divvy-0.1.2 | lib/divvy/plugins/apt.rb |