 # # Server configuration
 #
 # *Manages server and package configuration.*
-#
-# ###### TODO: Rename all config `key` uses to `path`.
 debug = require('debug') 'shrub:config'
 nconf = require 'nconf'
 fs = require 'fs'


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


  debug 'Packages registered.'

  packageConfig = new Config()
  for path, value of pkgman.invoke 'shrubConfigServer'
    packageConfig.set path.replace(/\//g, ':'), value

  nconf.defaults

