# File lib/travis/cli/cache.rb, line 12 def run error "not allowed to access caches for #{color(repository.slug, :bold)}" unless repository.push? branches = caches.group_by(&:branch) check_caches warn "Deleted the following caches:\n" if delete? branches.each { |name, list| display_branch(name, list) } size = caches.inject(0) { |s,c| s + c.size } say "Overall size of above caches: " << formatter.file_size(size) end