Class: Pod::Command::Bin::Update
- Inherits:
-
Pod::Command::Bin
- Object
- Pod::Command
- Pod::Command::Bin
- Pod::Command::Bin::Update
- Defined in:
- lib/cocoapods-pahealth-bin/command/bin/update.rb
Instance Method Summary collapse
- #clone_private_repo ⇒ Object
-
#initialize(argv) ⇒ Update
constructor
A new instance of Update.
- #pod_update_no_repo_update ⇒ Object
- #run ⇒ Object
Methods inherited from Pod::Command::Bin
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
#binary_source, #code_source, #sources_manager, #sources_option, #trunk_source, #valid_sources
Constructor Details
#initialize(argv) ⇒ Update
Returns a new instance of Update.
13 14 15 |
# File 'lib/cocoapods-pahealth-bin/command/bin/update.rb', line 13 def initialize(argv) super end |
Instance Method Details
#clone_private_repo ⇒ Object
24 25 26 27 28 29 |
# File 'lib/cocoapods-pahealth-bin/command/bin/update.rb', line 24 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_update ⇒ Object
31 32 33 34 35 36 37 38 39 |
# File 'lib/cocoapods-pahealth-bin/command/bin/update.rb', line 31 def pod_update_no_repo_update argvs = [ "--no-repo-update", "--sources=#{sources_option(true, @sources)}" ] update = Pod::Command::Update.new(CLAide::ARGV.new(argvs)) update.validate! update.run end |
#run ⇒ Object
17 18 19 20 21 22 |
# File 'lib/cocoapods-pahealth-bin/command/bin/update.rb', line 17 def run #1.clone Private repo clone_private_repo #2.执行 pod update --no-repo-update pod_update_no_repo_update end |