Sha256: 584415b0a097c74696de6fb9d1c386763f7a4737b3e4aa7855323fe6515b5826

Contents?: true

Size: 1.53 KB

Versions: 357

Compression:

Stored size: 1.53 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, 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"
      }.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

357 entries across 357 versions & 1 rubygems

Version Path
fastlane-2.74.0.beta.20180106010004 match/lib/match/table_printer.rb
fastlane-2.73.0 match/lib/match/table_printer.rb
fastlane-2.73.0.beta.20180105010003 match/lib/match/table_printer.rb
fastlane-2.73.0.beta.20180104010004 match/lib/match/table_printer.rb
fastlane-2.73.0.beta.20180103010003 match/lib/match/table_printer.rb
fastlane-2.72.0 match/lib/match/table_printer.rb
fastlane-2.72.0.beta.20180102010003 match/lib/match/table_printer.rb
fastlane-2.72.0.beta.20180101010003 match/lib/match/table_printer.rb
fastlane-2.72.0.beta.20171231010003 match/lib/match/table_printer.rb
fastlane-2.71.1 match/lib/match/table_printer.rb
fastlane-2.72.0.beta.20171230010003 match/lib/match/table_printer.rb
fastlane-2.72.0.beta.20171229010003 match/lib/match/table_printer.rb
fastlane-2.72.0.beta.20171228010004 match/lib/match/table_printer.rb
fastlane-2.71.0 match/lib/match/table_printer.rb
fastlane-2.71.0.beta.20171227010004 match/lib/match/table_printer.rb
fastlane-2.71.0.beta.20171226010004 match/lib/match/table_printer.rb
fastlane-2.71.0.beta.20171225010003 match/lib/match/table_printer.rb
fastlane-2.71.0.beta.20171224010003 match/lib/match/table_printer.rb
fastlane-2.71.0.beta.20171223010003 match/lib/match/table_printer.rb
fastlane-2.71.0.beta.20171222010003 match/lib/match/table_printer.rb