Sha256: d57cd3599c95e8b68ef4b248d36095117ceb65bb972871e8fc04c6facac8df83

Contents?: true

Size: 1.23 KB

Versions: 24

Compression:

Stored size: 1.23 KB

Contents

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)
      rows = []

      type = type.to_sym

      rows << ["App Identifier", "", app_identifier]
      rows << ["Type", "", type]

      {
        Utils.environment_variable_name(app_identifier: app_identifier, type: type) => "Profile UUID",
        Utils.environment_variable_name_profile_name(app_identifier: app_identifier, type: type) => "Profile Name",
        Utils.environment_variable_name_team_id(app_identifier: app_identifier, type: type) => "Development Team ID"
      }.each do |env_key, name|
        rows << [name, env_key, ENV[env_key]]
      end

      params = {}
      params[:rows] = 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

24 entries across 24 versions & 2 rubygems

Version Path
fastlane-2.13.0 match/lib/match/table_printer.rb
fastlane-2.12.0 match/lib/match/table_printer.rb
fastlane-2.11.0 match/lib/match/table_printer.rb
fastlane-2.10.0 match/lib/match/table_printer.rb
fastlane-2.9.0 match/lib/match/table_printer.rb
fastlane-2.8.0 match/lib/match/table_printer.rb
fastlane-2.7.0 match/lib/match/table_printer.rb
fastlane-2.6.0 match/lib/match/table_printer.rb
fastlane-2.5.0 match/lib/match/table_printer.rb
fastlane-2.4.0 match/lib/match/table_printer.rb
fastlane-2.3.1 match/lib/match/table_printer.rb
fastlane-2.3.0 match/lib/match/table_printer.rb
fastlane-2.2.0 match/lib/match/table_printer.rb
fastlane-2.1.3 match/lib/match/table_printer.rb
fastlane-2.1.2 match/lib/match/table_printer.rb
fastlane-2.1.1 match/lib/match/table_printer.rb
match-1.0.0 lib/match/table_printer.rb
fastlane-2.1.0 match/lib/match/table_printer.rb
fastlane-2.0.5 match/lib/match/table_printer.rb
fastlane-2.0.4 match/lib/match/table_printer.rb