Class: FastlaneCore::PrintTable
- Inherits:
-
Object
- Object
- FastlaneCore::PrintTable
- Defined in:
- lib/fastlane_core/print_table.rb
Class Method Summary collapse
-
.print_values(config: nil, title: nil, hide_keys: []) ⇒ Object
This method prints out all the user inputs in a nice table.
Class Method Details
.print_values(config: nil, title: nil, hide_keys: []) ⇒ Object
This method prints out all the user inputs in a nice table. Useful to summarize the run You can pass an array to ‘hide_key` if you don’t want certain elements to show up (symbols)
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/fastlane_core/print_table.rb', line 6 def print_values(config: nil, title: nil, hide_keys: []) require 'terminal-table' rows = [] config..each do |config_item| value = config[config_item.key] next if value.nil? next if value.to_s == "" next if hide_keys.include?(config_item.key) rows << [config_item.key, value] end params = {} params[:rows] = rows params[:title] = title if title puts "" puts Terminal::Table.new(params) puts "" return params end |