Class: Fastlane::CrashlyticsBetaUi
- Inherits:
-
Object
- Object
- Fastlane::CrashlyticsBetaUi
- Defined in:
- lib/fastlane/setup/crashlytics_beta_ui.rb
Instance Method Summary collapse
- #choose(text, options) ⇒ Object
- #confirm(text) ⇒ Object
- #header(text) ⇒ Object
- #important(text) ⇒ Object
- #input(text) ⇒ Object
- #message(text) ⇒ Object
- #success(text) ⇒ Object
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, ) return [0] unless UI.interactive? (text) Kernel.choose(*) 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 (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 |