Class: Dongjia::DongjiaSource
- Inherits:
-
Object
- Object
- Dongjia::DongjiaSource
- Defined in:
- lib/dongjia_source.rb
Class Method Summary collapse
Class Method Details
.import(use_private_source, podfile) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/dongjia_source.rb', line 7 def self.import(use_private_source, podfile) return if use_private_source == nil if use_private_source source_url = '[email protected]:ios-team/DJSpecs.git' unless File.exist?(File.('~/.cocoapods/repos/djspecs')) # 克隆私有源,并命名为 djspecs system "pod repo add djspecs #{source_url}" end podfile.source source_url end end |