Class: XcodeInstall::Command::Cleanup
- Inherits:
-
XcodeInstall::Command
- Object
- CLAide::Command
- XcodeInstall::Command
- XcodeInstall::Command::Cleanup
- Defined in:
- lib/xcode/install/cleanup.rb
Instance Method Summary collapse
Methods inherited from XcodeInstall::Command
Instance Method Details
#run ⇒ Object
7 8 9 10 11 |
# File 'lib/xcode/install/cleanup.rb', line 7 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 |