 		@grunt = grunt
 		@chalk = chalk
 		@moment = moment
-		@log.update = @_log_update
-
-# @hookFor that doesn’t requre to be invoked from constructor.
-# Can be used inside @prompt.
+		@log.update = @_logUpdate
+
+###
+@hookFor that doesn’t requre to be invoked from constructor. Can be used inside @prompt.
+###
 Generator::hookFor = (name, config) ->
 	config ?= {}
 


	this

Generator::copyIfNot = (filepath) ->
	@copy filepath, filepath  unless (fs.existsSync filepath)

###
Renders template and saves it. Silently exists when file already exists.

@param {String} template Template file name
@param {String} [filepath] Destination file
###
Generator::templateIfNot = (template, filepath) ->
	filepath = template  unless filepath

Generator::delete = ->
	grunt.file.delete arguments...

Generator::_logUpdate = ->
	@write (chalk.yellow '   update ')
	@write (util.format.apply util, arguments) + '\n'
	this

Generator::_printLog = (func, messages...) ->
	colorize = (msg) ->
		msg.replace(/`(.*?)`/g, (m, str) -> chalk.cyan(str))

	messages = @_.map messages, colorize
	@log[func] messages...
