Class: UpgradeLaptopExecution

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

Instance Method Summary collapse

Methods included from CommandHelper

#open_path, #run_command

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

#runObject



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