Sha256: b27b576ca20da9aef23fc8e7070228abaf1e7de75083b92a4b80afa880e500c3

Contents?: true

Size: 954 Bytes

Versions: 3

Compression:

Stored size: 954 Bytes

Contents

module Match
  class TablePrinter
    def self.print_summary(params)
      rows = []

      app_identifier = params[:app_identifier]
      type = params[: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

3 entries across 3 versions & 1 rubygems

Version Path
match-0.8.1 lib/match/table_printer.rb
match-0.8.0 lib/match/table_printer.rb
match-0.7.0 lib/match/table_printer.rb