       moduleList = (require configFile).modules
       moduleList.push args.moduleName
       fs.writeFileSync configFile, "module.exports.modules = #{JSON.stringify(moduleList)}"
-    args.cb?()
+
+    args.cb?()
+
 
 
   ###

    ], arguments)

    wrench.rmdirSyncRecursive args.dir  if fs.existsSync(args.dir)
    args.cb?()



    # copy the content of the variable into file
    fs.outputFileSync(destPath, contents)



  ###
  Generate the scaffold base on a template
  ###
  @_newTemplate: (dir, options, templatePath, cb) =>

    SCOPE.APP = "#{dir}/#{options.name}"
    wrench.copyDirSyncRecursive templatePath, SCOPE.APP,
      forceDelete : true
      exclude     : TEMPLATE.REGEX

    @_copyTemplate "#{templatePath}/#{template}", options for template in TEMPLATE.FILES

