Class: Fastlane::CrashlyticsBetaUi

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/setup/crashlytics_beta_ui.rb

Instance Method Summary collapse

Instance Method Details

#choose(text, options) ⇒ Object



30
31
32
33
34
# File 'lib/fastlane/setup/crashlytics_beta_ui.rb', line 30

def choose(text, options)
  return options[0] unless UI.interactive?
  message(text)
  Kernel.choose(*options)
end

#confirm(text) ⇒ Object



26
27
28
# File 'lib/fastlane/setup/crashlytics_beta_ui.rb', line 26

def confirm(text)
  UI.confirm(text)
end

#header(text) ⇒ Object



11
12
13
14
15
16
# File 'lib/fastlane/setup/crashlytics_beta_ui.rb', line 11

def header(text)
  i = text.length + 8
  success("-" * i)
  success("--- " + text + " ---")
  success("-" * i)
end

#important(text) ⇒ Object



18
19
20
# File 'lib/fastlane/setup/crashlytics_beta_ui.rb', line 18

def important(text)
  puts text.yellow
end

#input(text) ⇒ Object



22
23
24
# File 'lib/fastlane/setup/crashlytics_beta_ui.rb', line 22

def input(text)
  UI.input(text)
end

#message(text) ⇒ Object



7
8
9
# File 'lib/fastlane/setup/crashlytics_beta_ui.rb', line 7

def message(text)
  puts text
end

#success(text) ⇒ Object



3
4
5
# File 'lib/fastlane/setup/crashlytics_beta_ui.rb', line 3

def success(text)
  puts text.green
end