Class: Pod::Command::Bin::Update

Inherits:
Pod::Command::Bin show all
Defined in:
lib/cocoapods-pahealth-bin/command/bin/update.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Pod::Command::Bin

#validate!

Methods included from CBin::SpecFilesHelper

#binary_spec, #binary_spec_files, #binary_template_spec, #binary_template_spec_file, #binary_template_spec_files, #clear_binary_spec_file_if_needed, #code_spec, #code_spec_files, #create_binary_spec_file, #find_spec_file, #spec_files

Methods included from CBin::SourcesHelper

#code_source, #sources_manager, #sources_option, #valid_sources

Constructor Details

#initialize(argv) ⇒ Update

Returns a new instance of Update.



19
20
21
# File 'lib/cocoapods-pahealth-bin/command/bin/update.rb', line 19

def initialize(argv)
  super
end

Class Method Details

.optionsObject



14
15
16
17
# File 'lib/cocoapods-pahealth-bin/command/bin/update.rb', line 14

def self.options
  [
  ].concat(Pod::Command::Spec::Lint.options).concat(super).uniq
end

Instance Method Details

#clone_private_repoObject



30
31
32
33
34
35
# File 'lib/cocoapods-pahealth-bin/command/bin/update.rb', line 30

def clone_private_repo
  argvs = []
  private = Pod::Command::Bin::Repo::Update.new(CLAide::ARGV.new(argvs))
  private.validate!
  private.run
end

#pod_update_no_repo_updateObject



37
38
39
40
41
42
43
44
# File 'lib/cocoapods-pahealth-bin/command/bin/update.rb', line 37

def pod_update_no_repo_update
  argvs = [
      "--no-repo-update"
  ]
  update = Pod::Command::Update.new(CLAide::ARGV.new(argvs))
  update.validate!
  update.run
end

#runObject



23
24
25
26
27
28
# File 'lib/cocoapods-pahealth-bin/command/bin/update.rb', line 23

def run
  #1.clone Private repo
  clone_private_repo
  #2.执行 pod update --no-repo-update
  pod_update_no_repo_update
end