Class: Pod::Command::Outdated
- Inherits:
-
Pod::Command
- Object
- CLAide::Command
- Pod::Command
- Pod::Command::Outdated
- Defined in:
- lib/cocoapods/command/outdated.rb
Instance Method Summary collapse
-
#run ⇒ Object
Run the command.
Methods inherited from Pod::Command
#ensure_master_spec_repo_exists!, #initialize, options, report_error, run
Methods included from Pod::Config::Mixin
Constructor Details
This class inherits a constructor from Pod::Command
Instance Method Details
#run ⇒ Object
TODO:
the command report new dependencies added to the Podfile as updates.
TODO:
fix.
Run the command
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/cocoapods/command/outdated.rb', line 18 def run if updates.empty? UI.puts 'No pod updates are available.'.yellow else UI.section 'The following pod updates are available:' do updates.each do |(name, from_version, matching_version, to_version)| UI.puts "- #{name} #{from_version} -> #{matching_version} " \ "(latest version #{to_version})" end end end if deprecated_pods.any? UI.section 'The following pods are deprecated:' do deprecated_pods.each do |spec| if spec.deprecated_in_favor_of UI.puts "- #{spec.name}" \ " (in favor of #{spec.deprecated_in_favor_of})" else UI.puts "- #{spec.name}" end end end end end |