lib/nanoc/cli/logger.rb in nanoc-3.7.5 vs lib/nanoc/cli/logger.rb in nanoc-3.8.0
- old
+ new
@@ -9,12 +9,12 @@
# Maps actions (`:create`, `:update`, `:identical`, `:skip` and `:delete`)
# onto their ANSI color codes.
ACTION_COLORS = {
create: "\e[32m", # green
update: "\e[33m", # yellow
- identical: '', # (nothing)
- skip: '', # (nothing)
+ identical: '', # (nothing)
+ skip: '', # (nothing)
delete: "\e[31m" # red
}
include Singleton
@@ -44,12 +44,10 @@
format('%s%12s%s %s%s',
ACTION_COLORS[action.to_sym],
action,
"\e[0m",
duration.nil? ? '' : format('[%2.2fs] ', duration),
- name
- )
- )
+ name))
end
# Logs a message.
#
# @param [:high, :low] level The importance of this message