Sha256: 88615d1e9b42fc34b3cf531d5f8cf20054fec47c61dc1fa39c6e4bfa77f6ddfb

Contents?: true

Size: 1.78 KB

Versions: 28

Compression:

Stored size: 1.78 KB

Contents

require 'terminal-table'

require 'fastlane_core/print_table'
require_relative 'module'
require_relative 'utils'

module Match
  class TablePrinter
    # logs public key's  name, user, organisation, country, availability dates
    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

    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
  end
end

Version data entries

28 entries across 28 versions & 4 rubygems

Version Path
fastlane-2.225.0 match/lib/match/table_printer.rb
fastlane-2.224.0 match/lib/match/table_printer.rb
fastlane-2.223.1 match/lib/match/table_printer.rb
fastlane-2.223.0 match/lib/match/table_printer.rb
fastlane-2.222.0 match/lib/match/table_printer.rb
fastlane-2.221.1 match/lib/match/table_printer.rb
fastlane-2.221.0 match/lib/match/table_printer.rb
fastlane-2.220.0 match/lib/match/table_printer.rb
fastlane-2.219.0 match/lib/match/table_printer.rb
fastlane-2.218.0 match/lib/match/table_printer.rb
fastlane-security-patched-2.216.0 match/lib/match/table_printer.rb
fastlane-2.217.0 match/lib/match/table_printer.rb
fastlane-2.216.0 match/lib/match/table_printer.rb
fastlane-2.215.1 match/lib/match/table_printer.rb
fastlane-2.215.0 match/lib/match/table_printer.rb
fastlane-mercafacil-2.214.0 match/lib/match/table_printer.rb
fastlane-2.214.0 match/lib/match/table_printer.rb
fastlane-2.213.0 match/lib/match/table_printer.rb
fastlane-2.212.2 match/lib/match/table_printer.rb
fastlane_pricing_fix-2.212.1 match/lib/match/table_printer.rb