Module: XcodeTrashRemover::Core

Extended by:
Core
Included in:
Core
Defined in:
lib/xcode_trash_remover/core.rb

Instance Method Summary collapse

Instance Method Details

#check_volumesObject



7
8
9
10
11
12
13
14
15
# File 'lib/xcode_trash_remover/core.rb', line 7

def check_volumes
  puts 'Dir             size'
  puts
  puts "DerivedData     #{derived_data_size.pretty}"
  puts "Archives        #{archives_size.pretty}"
  puts "XCPGDevices     #{playground_devices_size.pretty}"
  puts "CoreSimulator   #{core_simulator_size.pretty}"
  puts
end

#remove_trashObject



17
18
19
20
21
22
# File 'lib/xcode_trash_remover/core.rb', line 17

def remove_trash
  total = total_size
  print_total_size(total)
  remove_dirs
  puts "#{total.pretty} removed!"
end

#show_optionsObject



24
25
26
27
28
# File 'lib/xcode_trash_remover/core.rb', line 24

def show_options
  puts 'Run:'
  puts '$ xcclean -rm'
  puts 'To remove the files from your system.'
end