Class: Gct::Command::Repo::Add

Inherits:
Gct::Command::Repo show all
Defined in:
lib/gct/command/repo/add.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) ⇒ Add

Returns a new instance of Add.



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

def initialize(argv)
  super
end

Instance Method Details

#addRepoObject



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

def addRepo
  puts "pod命令为:pod repo add iOSCRGTPodSource https://gi-dev.ccrgt.com/ios/iOSCRGTPodSource.git".green
  system "pod repo add iOSCRGTPodSource https://gi-dev.ccrgt.com/ios/iOSCRGTPodSource.git", exception: true
end

#runObject



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

def run
  addRepo
end

#validate!Object



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

def validate!
  super
end