| 
									
										
										
										
											2018-09-03 20:17:29 +01:00
										 |  |  | require "cask/cmd/abstract_command" | 
					
						
							| 
									
										
										
										
											2018-08-09 15:00:19 +02:00
										 |  |  | require "cleanup" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | using CleanupRefinement | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-06 08:29:14 +02:00
										 |  |  | module Cask | 
					
						
							| 
									
										
										
										
											2018-09-04 08:45:48 +01:00
										 |  |  |   class Cmd | 
					
						
							| 
									
										
										
										
											2018-08-09 15:00:19 +02:00
										 |  |  |     class Cleanup < AbstractCommand | 
					
						
							|  |  |  |       def self.help | 
					
						
							|  |  |  |         "cleans up cached downloads and tracker symlinks" | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       def self.visible | 
					
						
							|  |  |  |         false | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       attr_reader :cache_location | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       def initialize(*args, cache_location: Cache.path) | 
					
						
							|  |  |  |         super(*args) | 
					
						
							|  |  |  |         @cache_location = Pathname.new(cache_location) | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       def run | 
					
						
							| 
									
										
										
										
											2018-10-24 10:00:49 +01:00
										 |  |  |         odisabled "`brew cask cleanup`", "`brew cleanup`" | 
					
						
							| 
									
										
										
										
											2018-08-09 15:00:19 +02:00
										 |  |  |       end | 
					
						
							|  |  |  |     end | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |