instance method echo

Ruby on Rails 8.1.2

Since v8.1.2

Signature

echo(text, type:)

Echo text to the terminal in the color corresponding to the type of the text.

Examples:

echo "This is going to be green!", type: :success
echo "This is going to be red!", type: :error

See ActiveSupport::ContinuousIntegration::COLORS for a complete list of options.

Parameters

text req
type keyreq
Source
# File activesupport/lib/active_support/continuous_integration.rb, line 111
    def echo(text, type:)
      puts colorize(text, type)
    end

Defined in activesupport/lib/active_support/continuous_integration.rb line 111 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::ContinuousIntegration

Type at least 2 characters to search.

↑↓ navigate · open · esc close