Class: Fastlane::Flint::TablePrinter

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/plugin/flint/helper/table_printer.rb

Class Method Summary collapse

Class Method Details



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/fastlane/plugin/flint/helper/table_printer.rb', line 10

def self.print_summary(app_identifier: nil, type: nil, platform: :android, keystore_name: nil)
  rows = []

  type = type.to_sym

  rows << ["App Identifier", "", app_identifier]
  rows << ["Type", "", type]
  rows << ["Platform", "", platform.to_s]
  rows << ["Keystore", "", keystore_name]

  params = {}
  params[:rows] = FastlaneCore::PrintTable.transform_output(rows)
  params[:title] = "Installed Keystores".green
  params[:headings] = ['Parameter', 'Environment Variable', 'Value']

  puts("")
  puts(Terminal::Table.new(params))
  puts("")
end