 
 module.exports = class ProjectCreator
   constructor: (@config = {}, @resolveValues) ->
-    @config.defaults = {} unless @config.defaults
+    @config.globals = {} unless @config.globals
   
   createProject: (targetDir, templateName, next) ->
     @findTemplateDir templateName, (err, templateDir) =>

          # @log "Collecting placeholder names in #{templateDir}."
          return collectPlacholderNames paths, (err, varNames) =>
            return next err if err
            values = makeValues varNames, @config.defaults, targetDir, templateName
            missingVarNames = (name for name, value of values when value is null)
            @resolveValues missingVarNames, (err, resolvedValues) =>
              return next err if err

    @log "================="
    @log easytable.printObj sortValues values

makeValues = (varNames, globals, targetDir, templateName) ->
  values = {}
  for varName in varNames
    values[varName] = if globals[varName] then globals[varName] else null 
  values["target-dir"] = targetDir
  values["template-name"] = templateName
  values["current-year"] = new Date().getFullYear()
