 nodePath        = require 'path'
 
 class Config extends EventEmitter
+
+  @factory: (path)->
+    return new Config path
 
   constructor : (@path)->
     @emit "start"

    @configSchemaPath = nodePath.join __dirname+"/../../config/config.schema.coffee"
    @configFilePath   = nodePath.join __dirname+"/../../config/"+@path+".coffee"

    @check()

  check: ->
    normalizePathForSchema = (path,p=[])->

        process.exit()


    return configFile    

module.exports = Config

# config = new Config "kite.databases.config-prod-new"
# config = new Config "main.prod-new"
# config.on "result",(err,info)->
  #console.log err,info

