Class: UpgradeMacOS
- Inherits:
-
Object
- Object
- UpgradeMacOS
- Includes:
- CommandHelper
- Defined in:
- lib/renuo/cli/app/upgrade_laptop/upgrade_mac_os.rb
Instance Method Summary collapse
Methods included from CommandHelper
Instance Method Details
#reboot_required? ⇒ Boolean
15 16 17 |
# File 'lib/renuo/cli/app/upgrade_laptop/upgrade_mac_os.rb', line 15 def reboot_required? @output.downcase.include? "restart" end |
#run ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/renuo/cli/app/upgrade_laptop/upgrade_mac_os.rb', line 6 def run find_software_upgrades return unless upgrade_available? return if reboot_required_and_not_agreed_to? execute_upgrade end |