lib/nanoc/cli/logger.rb
def file(level, action, name, duration=nil)
      log(
        level,
        '%s%12s%s  %s%s' % [
          ACTION_COLORS[action.to_sym],
          action,
          "\e[0m",
          duration.nil? ? '' : "[%2.2fs]  " % [ duration ],
          name
        ]
      )
    end
# 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 [String] name The name of the file the action was performed on
#
# @return [void]
Logs a file-related action.
Logs a file - related action .
def file(level, action, name, duration=nil)
      log(
        level,
        '%s%12s%s  %s%s' % [
          ACTION_COLORS[action.to_sym],
          action,
          "\e[0m",
          duration.nil? ? '' : "[%2.2fs]  " % [ duration ],
          name
        ]
      )
    end
def file ( level , action , name , duration = nil ) log ( level , '%s%12s%s  %s%s' % [ ACTION_COLORS [ action . to_sym ] , action , "\e[0m" , duration . nil? ? '' : "[%2.2fs]  " % [ duration ] , name ] ) end
Logs a file-related action.
Logs a file - related action .
None
void
level
action
name
duration
name The name of the file the action was performed on
name The name of the file the action was performed on