Module: Divvy::Plugins::Apt
- Defined in:
- lib/divvy/plugins/apt.rb
Instance Method Summary collapse
Instance Method Details
#apt(*packages) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/divvy/plugins/apt.rb', line 4 def apt(*packages) packages.flatten! = { :dependencies_only => false } .update(packages.pop) if packages.last.is_a?(Hash) command = [ "DEBCONF_TERSE='yes' DEBIAN_PRIORITY='critical' DEBIAN_FRONTEND=noninteractive" ] command << 'apt-get -qyu' command << ([:dependencies_only] ? 'build-dep' : 'install') command << packages run(command.join(' ')) end |