Module: Escualo::AptGet
- Defined in:
- lib/escualo/apt_get.rb
Class Method Summary collapse
Class Method Details
.install(session, packages_string, options = {}) ⇒ Object
2 3 4 5 |
# File 'lib/escualo/apt_get.rb', line 2 def self.install(session, packages_string, ={}) session.tell_all! update_command(), "apt-get install -y --force-yes #{packages_string}" end |
.update_command(options) ⇒ Object
7 8 9 |
# File 'lib/escualo/apt_get.rb', line 7 def self.update_command() 'apt-get update' if [:update] end |