 
   debug 'Packages registered.'
 
-  # ###### TODO: Unify config key on `'packages'`.
   packageConfig = new Config()
-  for key, value of pkgman.invoke 'shrubConfigServer'
-    packageConfig.set key.replace(/\//g, ':'), value
+  for path, value of pkgman.invoke 'shrubConfigServer'
+    packageConfig.set path.replace(/\//g, ':'), value
 
   nconf.defaults
 


# ## config.get
#
# * (string) `key` - The key whose value to get.
#
# *Get a configuration value.*
exports.get = (key) -> nconf.get key

# ## config.has
#
# * (string) `key` - The key to check.
#
# *Check if a configuration key exists.*
exports.has = (key) -> nconf.has key

# ## config.load
#

# # Server configuration
#
# *Manages server and package configuration.*
debug = require('debug') 'shrub:config'
nconf = require 'nconf'
fs = require 'fs'
