Commit 06beef77 authored by Fabio Pelosin's avatar Fabio Pelosin

Configure statistics cache file

parent bac859c0
...@@ -21,7 +21,7 @@ module Pod ...@@ -21,7 +21,7 @@ module Pod
# @todo The {Installer::PodSourceInstaller} and the #{ExternalSources} # @todo The {Installer::PodSourceInstaller} and the #{ExternalSources}
# classes build and configure the downloader from scratch. # classes build and configure the downloader from scratch.
# #
CACHE_ROOT = "~/Library/Caches/CocoaPods" CACHE_ROOT = "#{ENV['HOME']}/Library/Caches/CocoaPods"
# @return [Fixnum] The maximum size for the cache expressed in Mb. # @return [Fixnum] The maximum size for the cache expressed in Mb.
# #
...@@ -30,6 +30,8 @@ module Pod ...@@ -30,6 +30,8 @@ module Pod
# #
MAX_CACHE_SIZE = 500 MAX_CACHE_SIZE = 500
Pod::Specification::Set::Statistics.instance.cache_file = Pathname.new(CACHE_ROOT) + 'statistics.yml'
autoload :Command, 'cocoapods/command' autoload :Command, 'cocoapods/command'
autoload :Executable, 'cocoapods/executable' autoload :Executable, 'cocoapods/executable'
autoload :ExternalSources, 'cocoapods/external_sources' autoload :ExternalSources, 'cocoapods/external_sources'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment