Class: Ghq::Cache::Stats
- Inherits:
-
Object
- Object
- Ghq::Cache::Stats
- Defined in:
- lib/ghq/cache/stats.rb
Class Method Summary collapse
Class Method Details
.print_repository_usage ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/ghq/cache/stats.rb', line 5 def print_repository_usage root = Logger.resume dir = list_with_depth(1, root).sort_by(&:count).reverse.first count_max = dir.count.to_s.length (1..3).each do |depth| print_usage_with_depth(depth, root, count_max) end end |