Sha256: 6a614b90e0538656d9f25d0c140e2705e3fdb35fe9818fd37e83250fe302d62c
Contents?: true
Size: 378 Bytes
Versions: 56
Compression:
Stored size: 378 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
56 entries across 56 versions & 2 rubygems