Class: Flutter::Repo

Inherits:
Object
  • Object
show all
Defined in:
lib/repo.rb

Class Method Summary collapse

Class Method Details

.repo_updateObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/repo.rb', line 3

def self.repo_update
  spec_path1 = File.expand_path("~/.cocoapods/repos/ios_sohu_spec/")
  spec_path2 = File.expand_path("~/.cocoapods/repos/SHSpecs/")
  p = Pathname.new(spec_path1)
  if Dir.exist?(p.realpath)
    `pod repo update ~/.cocoapods/repos/ios_sohu_spec/`
  else
    `pod repo add ios_sohu_spec [email protected]:mtpc_sh_ios/ios_sohu_spec.git`
  end

  if File.exist?(spec_path2)
    `pod repo update ~/.cocoapods/repos/SHSpecs/`
  else
    `pod repo add SHSpecs [email protected]:MPTC-iOS/SHSpecs.git`
  end
end