Class: UpgradeLaptopExecution
- Inherits:
-
Object
- Object
- UpgradeLaptopExecution
- Includes:
- CommandHelper
- Defined in:
- lib/renuo/cli/app/upgrade_laptop/upgrade_laptop_execution.rb
Instance Method Summary collapse
-
#initialize(upgrade_mac_os) ⇒ UpgradeLaptopExecution
constructor
A new instance of UpgradeLaptopExecution.
- #run ⇒ Object
Methods included from CommandHelper
Constructor Details
#initialize(upgrade_mac_os) ⇒ UpgradeLaptopExecution
Returns a new instance of UpgradeLaptopExecution.
6 7 8 |
# File 'lib/renuo/cli/app/upgrade_laptop/upgrade_laptop_execution.rb', line 6 def initialize(upgrade_mac_os) @upgrade_mac_os = upgrade_mac_os end |
Instance Method Details
#run ⇒ Object
10 11 12 13 14 |
# File 'lib/renuo/cli/app/upgrade_laptop/upgrade_laptop_execution.rb', line 10 def run upgrade_apps upgrade_mac_os upgrade_brew unless mac_os_upgrade_needs_a_restart? end |