lib/kontena/cli/helpers/log_helper.rb in kontena-cli-1.4.3 vs lib/kontena/cli/helpers/log_helper.rb in kontena-cli-1.5.0.pre1
- old
+ new
@@ -82,10 +82,10 @@
def show_log(log)
color = color_for_container(log['name'])
prefix = "#{log['created_at']} #{log['name']}:"
- puts "#{prefix.colorize(color)} #{log['data']}"
+ puts "#{pastel.send(color, prefix)} #{log['data']}"
end
# @param [String] container_id
# @return [Symbol]
def color_for_container(container_id)