Class: UbuntuUpdate::Updater
- Inherits:
-
Object
- Object
- UbuntuUpdate::Updater
- Defined in:
- lib/ubuntu_update.rb
Constant Summary collapse
- @@print_summary_command =
"echo '%{summary}'"
- @@apt_get_command =
"sudo apt-get %{command}"
Instance Method Summary collapse
- #execute_command ⇒ Object
-
#initialize(options_parser, command_executor) ⇒ Updater
constructor
A new instance of Updater.
Constructor Details
#initialize(options_parser, command_executor) ⇒ Updater
Returns a new instance of Updater.
12 13 14 15 16 |
# File 'lib/ubuntu_update.rb', line 12 def initialize (, command_executor) @command_executor = command_executor @options_parser = @command_list = [] end |
Instance Method Details
#execute_command ⇒ Object
18 19 20 |
# File 'lib/ubuntu_update.rb', line 18 def execute_command @command_executor.execute get_command end |