lib/nanoc/cli/logger.rb in nanoc-4.8.4 vs lib/nanoc/cli/logger.rb in nanoc-4.8.5
- old
+ new
@@ -6,16 +6,17 @@
# Nanoc::CLI::Logger is a singleton class responsible for generating
# feedback in the terminal.
#
# @api private
class Logger
- # Maps actions (`:create`, `:update`, `:identical`, `:skip` and `:delete`)
+ # Maps actions (`:create`, `:update`, `:identical`, `:cached`, `:skip` and `:delete`)
# onto their ANSI color codes.
ACTION_COLORS = {
create: "\e[32m", # green
update: "\e[33m", # yellow
identical: '', # (nothing)
+ cached: '', # (nothing)
skip: '', # (nothing)
delete: "\e[31m" # red
}.freeze
include Singleton
@@ -33,10 +34,10 @@
# Logs a file-related action.
#
# @param [:high, :low] level The importance of this action
#
- # @param [:create, :update, :identical, :skip, :delete] action The kind of file action
+ # @param [:create, :update, :identical, :cached, :skip, :delete] action The kind of file action
#
# @param [String] name The name of the file the action was performed on
#
# @return [void]
def file(level, action, name, duration = nil)