Module: XcodeTrashRemover::Core
Instance Method Summary collapse
Instance Method Details
#check_volumes ⇒ Object
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_trash ⇒ Object
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_options ⇒ Object
24 25 26 27 28 |
# File 'lib/xcode_trash_remover/core.rb', line 24 def puts 'Run:' puts '$ xcclean -rm' puts 'To remove the files from your system.' end |