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

Version Path
xcode-install-2.8.1 lib/xcode/install/cleanup.rb
xcode-install-2.8.0 lib/xcode/install/cleanup.rb
xcode-install-2.7.0 lib/xcode/install/cleanup.rb
xcode-install-2.6.8 lib/xcode/install/cleanup.rb
xcode-install-2.6.7 lib/xcode/install/cleanup.rb
xcode-install-2.6.6 lib/xcode/install/cleanup.rb
xcode-install-2.6.5 lib/xcode/install/cleanup.rb
xcode-install-2.6.4 lib/xcode/install/cleanup.rb
xcode-install-2.6.3 lib/xcode/install/cleanup.rb
xcode-install-2.6.2 lib/xcode/install/cleanup.rb
xcode-install-2.6.1 lib/xcode/install/cleanup.rb
xcode-install-2.6.0 lib/xcode/install/cleanup.rb
xcode-install-citrus-2.5.0 lib/xcode/install/cleanup.rb
xcode-install-2.5.0 lib/xcode/install/cleanup.rb
xcode-install-2.4.4 lib/xcode/install/cleanup.rb
xcode-install-2.4.2 lib/xcode/install/cleanup.rb
xcode-install-2.4.1 lib/xcode/install/cleanup.rb
xcode-install-2.4.0 lib/xcode/install/cleanup.rb
xcode-install-2.3.1 lib/xcode/install/cleanup.rb
xcode-install-2.3.0 lib/xcode/install/cleanup.rb