method

echo

rails latest stable - Class: ActiveSupport::ContinuousIntegration

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

echo(text, type:)
public

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.