Sha256: 654f6a9d89d4b4acf93ae15880b0ee706438d884b507e69b79896af048ebc16b

Contents?: true

Size: 1.35 KB

Versions: 23

Compression:

Stored size: 1.35 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_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] = 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

23 entries across 23 versions & 1 rubygems

Version Path
fastlane-2.19.0.beta.20170224010025 match/lib/match/table_printer.rb
fastlane-2.18.3 match/lib/match/table_printer.rb
fastlane-2.19.0.beta.20170223010028 match/lib/match/table_printer.rb
fastlane-2.18.2 match/lib/match/table_printer.rb
fastlane-2.19.0.beta.20170222010016 match/lib/match/table_printer.rb
fastlane-2.18.1 match/lib/match/table_printer.rb
fastlane-2.18.0 match/lib/match/table_printer.rb
fastlane-2.18.0.beta.20170221010026 match/lib/match/table_printer.rb
fastlane-2.18.0.beta.20170220010017 match/lib/match/table_printer.rb
fastlane-2.18.0.beta.20170219010032 match/lib/match/table_printer.rb
fastlane-2.18.0.beta.20170218010103 match/lib/match/table_printer.rb
fastlane-2.18.0.beta.20170217010035 match/lib/match/table_printer.rb
fastlane-2.18.0.beta.20170216184940 match/lib/match/table_printer.rb
fastlane-2.17.1 match/lib/match/table_printer.rb
fastlane-2.17.0 match/lib/match/table_printer.rb
fastlane-2.16.0 match/lib/match/table_printer.rb
fastlane-2.15.1 match/lib/match/table_printer.rb
fastlane-2.16.0.beta.20170214010051 match/lib/match/table_printer.rb
fastlane-2.15.0 match/lib/match/table_printer.rb
fastlane-2.15.0.beta.20170213032052 match/lib/match/table_printer.rb