Sha256: f5d22c0624a2332856230d60b1324b40519ee122ef1ef6ad4404e6481e3d0a72

Contents?: true

Size: 348 Bytes

Versions: 4

Compression:

Stored size: 348 Bytes

Contents

module XcodeInstall
	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
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
xcode-install-0.3.0 lib/xcode/install/cleanup.rb
xcode-install-0.2.0 lib/xcode/install/cleanup.rb
xcode-install-0.1.1 lib/xcode/install/cleanup.rb
xcode-install-0.1.0 lib/xcode/install/cleanup.rb