lib/xcode/install/cleanup.rb in xcode-install-0.3.0 vs lib/xcode/install/cleanup.rb in xcode-install-0.3.1
- old
+ new
@@ -1,14 +1,14 @@
module XcodeInstall
- class Command
- class Cleanup < Command
- self.command = 'cleanup'
- self.summary = 'Cleanup cached downloads.'
+ class Command
+ class Cleanup < Command
+ self.command = 'cleanup'
+ self.summary = 'Cleanup cached downloads.'
- def run
- installer = XcodeInstall::Installer.new
- return if installer.cache_dir.nil? || installer.cache_dir.to_s.length < 5
- FileUtils.rm_f(Dir.glob("#{installer.cache_dir}/*"))
- end
- end
- end
+ def run
+ installer = XcodeInstall::Installer.new
+ return if installer.cache_dir.nil? || installer.cache_dir.to_s.length < 5
+ FileUtils.rm_f(Dir.glob("#{installer.cache_dir}/*"))
+ end
+ end
+ end
end