Class: Match::TablePrinter
- Inherits:
-
Object
- Object
- Match::TablePrinter
- Defined in:
- match/lib/match/table_printer.rb
Class Method Summary collapse
-
.print_certificate_info(cert_info: nil) ⇒ Object
logs public key’s name, user, organisation, country, availability dates.
- .print_summary(app_identifier: nil, type: nil, platform: :ios) ⇒ Object
Class Method Details
.print_certificate_info(cert_info: nil) ⇒ Object
logs public key’s name, user, organisation, country, availability dates
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'match/lib/match/table_printer.rb', line 10 def self.print_certificate_info(cert_info: nil) params = { rows: cert_info, title: "Installed Certificate".green } puts("") puts(Terminal::Table.new(params)) puts("") rescue => ex UI.error(ex) end |
.print_summary(app_identifier: nil, type: nil, platform: :ios) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'match/lib/match/table_printer.rb', line 23 def self.print_summary(app_identifier: nil, type: nil, platform: :ios) rows = [] type = type.to_sym rows << ["App Identifier", "", app_identifier] rows << ["Type", "", type] rows << ["Platform", "", platform.to_s] { Utils.environment_variable_name(app_identifier: app_identifier, type: type, platform: platform) => "Profile UUID", Utils.environment_variable_name_profile_name(app_identifier: app_identifier, type: type, platform: platform) => "Profile Name", Utils.environment_variable_name_profile_path(app_identifier: app_identifier, type: type, platform: platform) => "Profile Path", Utils.environment_variable_name_team_id(app_identifier: app_identifier, type: type, platform: platform) => "Development Team ID", Utils.environment_variable_name_certificate_name(app_identifier: app_identifier, type: type, platform: platform) => "Certificate Name" }.each do |env_key, name| rows << [name, env_key, ENV[env_key]] end params = {} params[:rows] = FastlaneCore::PrintTable.transform_output(rows) params[:title] = "Installed Provisioning Profile".green params[:headings] = ['Parameter', 'Environment Variable', 'Value'] puts("") puts(Terminal::Table.new(params)) puts("") end |