Class: UpgradeMacOS

Inherits:
Object
  • Object
show all
Includes:
CommandHelper
Defined in:
lib/renuo/cli/app/upgrade_laptop/upgrade_mac_os.rb

Instance Method Summary collapse

Methods included from CommandHelper

#open_path, #run_command

Instance Method Details

#reboot_required?Boolean

Returns:

  • (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

#runObject



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