Sha256: 29352a90ff50eb48aa78c18de7ad96dc54f7b7cbc44c03314d7a3caf15fb66e6

Contents?: true

Size: 1.48 KB

Versions: 54

Compression:

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

54 entries across 54 versions & 1 rubygems

Version Path
fastlane-2.26.1 match/lib/match/table_printer.rb
fastlane-2.27.0.beta.20170408010009 match/lib/match/table_printer.rb
fastlane-2.27.0.beta.20170407010056 match/lib/match/table_printer.rb
fastlane-2.26.0 match/lib/match/table_printer.rb
fastlane-2.26.0.beta.20170406010019 match/lib/match/table_printer.rb
fastlane-2.26.0.beta.20170405010026 match/lib/match/table_printer.rb
fastlane-2.26.0.beta.20170404010022 match/lib/match/table_printer.rb
fastlane-2.25.0 match/lib/match/table_printer.rb
fastlane-2.25.0.beta.20170403010018 match/lib/match/table_printer.rb
fastlane-2.25.0.beta.20170402010035 match/lib/match/table_printer.rb
fastlane-2.25.0.beta.20170401010021 match/lib/match/table_printer.rb
fastlane-2.25.0.beta.20170331010039 match/lib/match/table_printer.rb
fastlane-2.25.0.beta.20170330225747 match/lib/match/table_printer.rb
fastlane-2.24.0 match/lib/match/table_printer.rb
fastlane-2.24.0.beta.20170330010023 match/lib/match/table_printer.rb
fastlane-2.24.0.beta.20170329010023 match/lib/match/table_printer.rb
fastlane-2.24.0.beta.20170328010037 match/lib/match/table_printer.rb
fastlane-2.24.0.beta.20170327010009 match/lib/match/table_printer.rb
fastlane-2.24.0.beta.20170326010023 match/lib/match/table_printer.rb
fastlane-2.24.0.beta.20170325010032 match/lib/match/table_printer.rb