Module: Doorway::Packages
- Defined in:
- lib/doorway/commands/packages.rb
Instance Method Summary collapse
Instance Method Details
#add_ppa(ppa) ⇒ Object
11 12 13 14 |
# File 'lib/doorway/commands/packages.rb', line 11 def add_ppa(ppa) exec_as :root, "add-apt-repository ppa:#{ppa}" update_packages end |
#install(package) ⇒ Object
6 7 8 9 |
# File 'lib/doorway/commands/packages.rb', line 6 def install(package) exec_as :root, "DEBIAN_FRONTEND=noninteractive apt-get install -y -q #{package}" end |
#update_packages ⇒ Object
2 3 4 |
# File 'lib/doorway/commands/packages.rb', line 2 def update_packages exec_as :root, "apt-get update" end |