Class: Gct::Command::Repo::Update

Inherits:
Gct::Command::Repo show all
Defined in:
lib/gct/command/repo/update.rb

Instance Method Summary collapse

Methods inherited from Gct::Command

#auto_add_tag, #check_branch_can_be_update, #config_gitlab, #current_branch, #file_contents, #get_project, #gitlab_error, options, run

Constructor Details

#initialize(argv) ⇒ Update

Returns a new instance of Update.



14
15
16
# File 'lib/gct/command/repo/update.rb', line 14

def initialize(argv)
  super
end

Instance Method Details

#runObject



22
23
24
# File 'lib/gct/command/repo/update.rb', line 22

def run
  updateRepo
end

#updateRepoObject



26
27
28
29
30
# File 'lib/gct/command/repo/update.rb', line 26

def updateRepo
  puts "pod命令为:pod repo update iOSCRGTPodSource".green
  system "pod repo update iOSCRGTPodSource", exception: true
  puts "如果找不到 iOSCRGTPodSource 文件,先执行gct repo add".green
end

#validate!Object



18
19
20
# File 'lib/gct/command/repo/update.rb', line 18

def validate!
  super
end