Top Level Namespace
Instance Method Summary collapse
-
#apt(package, opts = {}) ⇒ Object
Define the apt method as it exists on Ubuntu.
Instance Method Details
#apt(package, opts = {}) ⇒ Object
Define the apt method as it exists on Ubuntu
4 5 6 7 8 9 10 |
# File 'lib/doo-extras/ubuntu.rb', line 4 def apt(package, opts = {}) if opts[:interactive] sudo "DEBIAN_PRIORITY=critical apt-get install #{package}" else sudo "DEBCONF_TERSE=yes DEBIAN_PRIORITY=critical DEBIAN_FRONTEND=noninteractive apt-get --force-yes -qyu install #{package}" end end |