Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage example not working: undefined method 'cache_root' #68

Open
MaximeLM opened this issue Apr 27, 2017 · 1 comment
Open

Usage example not working: undefined method 'cache_root' #68

MaximeLM opened this issue Apr 27, 2017 · 1 comment

Comments

@MaximeLM
Copy link

cocoapods-downloader 1.1.3
cocoapods 1.2.1
ruby 2.2.1p85

I created a new ruby file with the usage example from the README:

require 'cocoapods-downloader'

target_path = './Downloads/MyDownload'
options = { :git => 'example.com' }
options = Pod::Downloader.preprocess_options(options)
downloader = Pod::Downloader.for_target(target_path, options)
downloader.cache_root = '~/Library/Caches/APPNAME'
downloader.max_cache_size = 500
downloader.download
downloader.checkout_options #=> { :git => 'example.com', :commit => 'd7f410490dabf7a6bde665ba22da102c3acf1bd9' }

When I execute the file, i get the error:

download.rb:7:in `<main>': undefined method `cache_root=' for #<Pod::Downloader::Git:0x007fd8c41fadc0> (NoMethodError)
@suyimo
Copy link

suyimo commented Jul 23, 2019

me too, max_cache_size also undefined
undefined method `max_cache_size=' for #Pod::Downloader::Http:0x007f954129ab48 (NoMethodError)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants