Module: Calabash::Cucumber::Logging
- Included in:
- Calabash::Cucumber, Core, Device, EnvironmentHelpers, KeyboardHelpers, Launcher, Operations, PlaybackHelpers, RotationHelpers, SimulatorLauncher, StatusBarHelpers, UIA, WaitHelpers
- Defined in:
- lib/calabash-cucumber/utils/logging.rb
Overview
Internal logging methods for the calabash-ios gem.
Instance Method Summary collapse
-
#calabash_info(msg) ⇒ void
Prints a green info message.
-
#calabash_warn(msg) ⇒ void
Prints a blue warning message.
Instance Method Details
#calabash_info(msg) ⇒ void
This method returns an undefined value.
Prints a green info message.
46 47 48 49 50 51 52 |
# File 'lib/calabash-cucumber/utils/logging.rb', line 46 def calabash_info(msg) begin puts "\033[32m\nINFO: #{msg}\033[0m" rescue puts "\nINFO: #{msg}" end end |
#calabash_warn(msg) ⇒ void
This method returns an undefined value.
Prints a blue warning message.
35 36 37 38 39 40 41 |
# File 'lib/calabash-cucumber/utils/logging.rb', line 35 def calabash_warn(msg) begin warn "\033[34m\nWARN: #{msg}\033[0m" rescue warn "\nWARN: #{msg}" end end |