Module: Pod::Podfile::DSL
- Defined in:
- lib/cocoapods-prefer/hook/podfile.rb
Instance Method Summary collapse
- #dislike_source(source_name, url) ⇒ Object
- #dislike_source_pod(name = nil, *requirements) ⇒ Object
- #lock_source_with_url(url) ⇒ Object
- #prefer_source(source_name, url) ⇒ Object
- #prefer_source_pod(name = nil, *requirements) ⇒ Object
Instance Method Details
#dislike_source(source_name, url) ⇒ Object
15 16 17 |
# File 'lib/cocoapods-prefer/hook/podfile.rb', line 15 def dislike_source(source_name, url) Pod::PreferConfig.instance.dislike_source(source_name, url) end |
#dislike_source_pod(name = nil, *requirements) ⇒ Object
34 35 36 37 38 |
# File 'lib/cocoapods-prefer/hook/podfile.rb', line 34 def dislike_source_pod(name = nil, *requirements) pod(name, *requirements) Pod::PreferConfig.instance.dislike_pod(name) end |
#lock_source_with_url(url) ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/cocoapods-prefer/hook/podfile.rb', line 19 def lock_source_with_url(url) Pod::PreferConfig.instance.lock_url(url) source(url) yield if block_given? Pod::PreferConfig.instance.unlock_url() end |
#prefer_source(source_name, url) ⇒ Object
10 11 12 13 |
# File 'lib/cocoapods-prefer/hook/podfile.rb', line 10 def prefer_source(source_name, url) Pod::PreferConfig.instance.prefer_source(source_name, url) source(url) end |
#prefer_source_pod(name = nil, *requirements) ⇒ Object
28 29 30 31 32 |
# File 'lib/cocoapods-prefer/hook/podfile.rb', line 28 def prefer_source_pod(name = nil, *requirements) pod(name, *requirements) Pod::PreferConfig.instance.prefer_pod(name) end |