aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authormansimarkaur2017-08-13 04:21:07 +0530
committermansimarkaur2017-08-27 01:18:41 +0530
commit9a83856a4920e5e382df5025361bc405643d90f5 (patch)
tree255abffc684aea6fac0b2ddcd1218f7d5f286360 /Library
parente7c2efa42fbf1846ef32e86eb3bcd57482e399b4 (diff)
downloadbrew-9a83856a4920e5e382df5025361bc405643d90f5.tar.bz2
Added attr_reader disk_cleanup_size
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cleanup.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/cleanup.rb b/Library/Homebrew/cleanup.rb
index d1f0b2516..340161204 100644
--- a/Library/Homebrew/cleanup.rb
+++ b/Library/Homebrew/cleanup.rb
@@ -6,6 +6,10 @@ module Homebrew
module Cleanup
@disk_cleanup_size = 0
+ class << self
+ attr_reader :disk_cleanup_size
+ end
+
module_function
def cleanup
@@ -21,10 +25,6 @@ module Homebrew
@disk_cleanup_size += path_size
end
- def disk_cleanup_size
- @disk_cleanup_size
- end
-
def unremovable_kegs
@unremovable_kegs ||= []
end