Module: Pod::Podfile::DSL
- Defined in:
- lib/pod/podfile/dsl.rb
Instance Method Summary collapse
Instance Method Details
#rsync_source(source, argv = nil) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/pod/podfile/dsl.rb', line 4 def rsync_source(source, argv=nil) hash_plugins = get_hash_value('plugins') || {"cocoapods-repo-rsync"=>{"sources"=>[]}} sources = hash_plugins["cocoapods-repo-rsync"]["sources"] unless sources.map { |s| s.class == Array ? s[0] : s }.include?(source) sources << (argv.nil? ? source : [source, argv]) set_hash_value('plugins', hash_plugins) end end |