Class: Pod::Command::Cache
- Inherits:
-
Pod::Command
- Object
- CLAide::Command
- Pod::Command
- Pod::Command::Cache
- Defined in:
- lib/cocoapods/command/cache.rb,
lib/cocoapods/command/cache/list.rb,
lib/cocoapods/command/cache/clean.rb
Defined Under Namespace
Instance Method Summary collapse
-
#initialize(argv) ⇒ Cache
constructor
A new instance of Cache.
- #pod_type(pod_cache_descriptor) ⇒ Object private
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
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 |