Class: Pod::Command::Cache

Inherits:
Pod::Command show all
Defined in:
lib/cocoapods/command/cache.rb,
lib/cocoapods/command/cache/list.rb,
lib/cocoapods/command/cache/clean.rb

Direct Known Subclasses

Clean, List

Defined Under Namespace

Classes: Clean, List

Instance Method Summary collapse

Methods inherited from Pod::Command

#ensure_master_spec_repo_exists!, ensure_not_root_or_allowed!, git_version, #installer_for_config, options, report_error, run, #verify_lockfile_exists!, verify_minimum_git_version!, #verify_podfile_exists!, verify_xcode_license_approved!

Methods included from Pod::Config::Mixin

#config

Constructor Details

#initialize(argv) ⇒ Cache

Returns a new instance of Cache.



16
17
18
19
# File 'lib/cocoapods/command/cache.rb', line 16

def initialize(argv)
  @cache = Downloader::Cache.new(Config.instance.cache_root + 'Pods')
  super
end

Instance Method Details

#pod_type(pod_cache_descriptor) ⇒ Object (private)



23
24
25
# File 'lib/cocoapods/command/cache.rb', line 23

def pod_type(pod_cache_descriptor)
  pod_cache_descriptor[:release] ? 'Release' : 'External'
end