Module: CBin::SourcesHelper
- Included in:
- Pod::Command::Bin
- Defined in:
- lib/cocoapods-pahealth-bin/helpers/sources_helper.rb
Instance Method Summary collapse
- #code_source ⇒ Object
- #sources_manager ⇒ Object
- #sources_option(additional_sources) ⇒ Object
- #valid_sources ⇒ Object
Instance Method Details
#code_source ⇒ Object
9 10 11 |
# File 'lib/cocoapods-pahealth-bin/helpers/sources_helper.rb', line 9 def code_source sources_manager.code_source end |
#sources_manager ⇒ Object
5 6 7 |
# File 'lib/cocoapods-pahealth-bin/helpers/sources_helper.rb', line 5 def sources_manager Pod::Config.instance.sources_manager end |
#sources_option(additional_sources) ⇒ Object
18 19 20 |
# File 'lib/cocoapods-pahealth-bin/helpers/sources_helper.rb', line 18 def sources_option(additional_sources) (valid_sources.map(&:url) + Array(additional_sources)).join(',') end |
#valid_sources ⇒ Object
13 14 15 16 |
# File 'lib/cocoapods-pahealth-bin/helpers/sources_helper.rb', line 13 def valid_sources sources = [code_source] sources end |