This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
say_status(status, message, log_status = true)
public
Say a status with the given color and appends the message. Since this
method is used frequently by actions, it allows nil or false to be given in
log_status, avoiding the message from being shown. If a Symbol is given in log_status, it’s used as the
color.
# File lib/bundler/vendor/thor/lib/thor/shell/basic.rb, line 101
def say_status(status, message, log_status = true)
return if quiet? || log_status == false
spaces = " " * (padding + 1)
color = log_status.is_a?(Symbol) ? log_status : :green
status = status.to_s.rjust(12)
status = set_color status, color, true if color
buffer = "#{status}#{spaces}#{message}"
buffer = "#{buffer}\n" unless buffer.end_with?("\n")
stdout.print(buffer)
stdout.flush
end