Class: RocketFuel::Fix::CommandLineTools::DownloadRoutine

Inherits:
Object
  • Object
show all
Includes:
Thor::Base
Defined in:
lib/rocket_fuel/fix/command_line_tools/download_routine.rb

Constant Summary collapse

PREF_NAMESPACE =
File.expand_path("#{ENV['HOME']}/Library/Preferences/com.apple.Safari")

Instance Method Summary collapse

Constructor Details

#initializeDownloadRoutine

Returns a new instance of DownloadRoutine.



10
11
12
13
# File 'lib/rocket_fuel/fix/command_line_tools/download_routine.rb', line 10

def initialize
  @script_path = File.join(File.dirname(__FILE__), 'install.applescript')
  @download = Download.new
end

Instance Method Details

#runObject



15
16
17
18
19
# File 'lib/rocket_fuel/fix/command_line_tools/download_routine.rb', line 15

def run
  whitelist_downloads
  run_applescript
  await_download_completion
end