mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Added attr_reader disk_cleanup_size
This commit is contained in:
parent
e7c2efa42f
commit
9a83856a49
@ -6,6 +6,10 @@ module Homebrew
|
|||||||
module Cleanup
|
module Cleanup
|
||||||
@disk_cleanup_size = 0
|
@disk_cleanup_size = 0
|
||||||
|
|
||||||
|
class << self
|
||||||
|
attr_reader :disk_cleanup_size
|
||||||
|
end
|
||||||
|
|
||||||
module_function
|
module_function
|
||||||
|
|
||||||
def cleanup
|
def cleanup
|
||||||
@ -21,10 +25,6 @@ module Homebrew
|
|||||||
@disk_cleanup_size += path_size
|
@disk_cleanup_size += path_size
|
||||||
end
|
end
|
||||||
|
|
||||||
def disk_cleanup_size
|
|
||||||
@disk_cleanup_size
|
|
||||||
end
|
|
||||||
|
|
||||||
def unremovable_kegs
|
def unremovable_kegs
|
||||||
@unremovable_kegs ||= []
|
@unremovable_kegs ||= []
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user