Class: Pod::Command::Bin::Repo::Update
- Inherits:
-
Pod::Command::Bin::Repo
- Object
- Pod::Command
- Pod::Command::Bin
- Pod::Command::Bin::Repo
- Pod::Command::Bin::Repo::Update
- Defined in:
- lib/cocoapods-pahealth-bin/command/bin/repo/update.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Update
constructor
A new instance of Update.
- #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.
20 21 22 23 |
# File 'lib/cocoapods-pahealth-bin/command/bin/repo/update.rb', line 20 def initialize(argv) @trunk = argv.flag?('trunk-repo-update',false ) super end |
Class Method Details
.options ⇒ Object
14 15 16 17 18 |
# File 'lib/cocoapods-pahealth-bin/command/bin/repo/update.rb', line 14 def self. [ ['--trunk-repo-update', '更新官方源'] ].concat(super) end |
Instance Method Details
#run ⇒ Object
25 26 27 28 29 30 |
# File 'lib/cocoapods-pahealth-bin/command/bin/repo/update.rb', line 25 def run show_output = !config.silent? Parallel.each(valid_sources(!@trunk), in_threads: 4) do |source| source.update(show_output) end end |