Module: PDK::CLI::Util::UpdateManagerPrinter
- Defined in:
- lib/pdk/cli/util/update_manager_printer.rb
Class Method Summary collapse
-
.print_summary(update_manager, options = {}) ⇒ void
Prints the summary for a PDK::Module::UpdateManager Object.
Class Method Details
.print_summary(update_manager, options = {}) ⇒ void
This method returns an undefined value.
Prints the summary for a PDK::Module::UpdateManager Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/pdk/cli/util/update_manager_printer.rb', line 13 def self.print_summary(update_manager, = {}) require 'pdk/report' = { tense: :future }.merge() = false summary(update_manager).each do |category, files| next if files.empty? PDK::Report.default_target.puts('') PDK::Report.default_target.puts(("Files #{[:tense] == :future ? 'to be ' : ''}#{category}", 40)) PDK::Report.default_target.puts(files.map(&:to_s).join("\n")) = true end if # rubocop:disable Style/GuardClause No. PDK::Report.default_target.puts('') PDK::Report.default_target.puts(('', 40)) end end |