class Object

Public Instance Methods

error(message) click to toggle source

Show error message. Use this when you need to show an error message and not throwing an exception that will stop the build.

# File lib/buildr/core/application.rb, line 607
def error(message)
  puts Buildr::Console.color(message.to_s, :red)
end
info(message) click to toggle source

Show optional information. The message is printed only when running in verbose mode (the default).

# File lib/buildr/core/application.rb, line 613
def info(message)
  puts message if verbose
end
trace(message) click to toggle source

Show message. The message is printed out only when running in trace mode.

# File lib/buildr/core/application.rb, line 618
def trace(message)
  puts message if Buildr.application.options.trace
end
trace?(*category) click to toggle source
# File lib/buildr/core/application.rb, line 622
def trace?(*category)
  options = Buildr.application.options
  return options.trace if category.empty?
  return true if options.trace_all
  return false unless options.trace_categories
  options.trace_categories.include?(category.first)
end
warn(*message, uplevel: nil) click to toggle source

Show warning message.

# File lib/buildr/core/application.rb, line 601
def warn(*message, uplevel: nil)
  warn_without_color(Buildr::Console.color(message.join(' '), :blue), :uplevel => uplevel) if verbose
end
Also aliased as: warn_without_color
warn_without_color(*message, uplevel: nil)
Alias for: warn