Module: Calabash::Cucumber::Logging

Overview

Internal logging methods for the calabash-ios gem.

Instance Method Summary collapse

Instance Method Details

#calabash_info(msg) ⇒ void

This method returns an undefined value.

Prints a green info message.

Parameters:

  • msg (String)

    the message to print



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.

Parameters:

  • msg (String)

    the message to print



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