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-1.2.2 lib/xcode/install/cleanup.rb
xcode-install-1.2.1 lib/xcode/install/cleanup.rb
xcode-install-1.2.0 lib/xcode/install/cleanup.rb
xcode-install-1.1.0 lib/xcode/install/cleanup.rb
xcode-install-1.0.1 lib/xcode/install/cleanup.rb
xcode-install-1.0.0 lib/xcode/install/cleanup.rb
xcode-install-0.9.6 lib/xcode/install/cleanup.rb
xcode-install-0.9.5 lib/xcode/install/cleanup.rb
xcode-install-0.9.4 lib/xcode/install/cleanup.rb
xcode-install-0.9.3 lib/xcode/install/cleanup.rb
xcode-install-0.9.2 lib/xcode/install/cleanup.rb
xcode-install-0.9.1 lib/xcode/install/cleanup.rb
xcode-install-0.9.0 lib/xcode/install/cleanup.rb
xcode-install-0.3.3 lib/xcode/install/cleanup.rb
xcode-install-0.3.2 lib/xcode/install/cleanup.rb
xcode-install-0.3.1 lib/xcode/install/cleanup.rb