       @create container, done
 
     start: (done) ->
-      [container] = @args
-      @start container, done
+      [cluster] = @args
+      @start cluster, done
 
     stop: (done) ->
       [container] = @args

    return fn.call this, (err) -> throw err if err

module.exports = Decking


    @config = @loadConfig "./decking.json"

  processConfig: (config) ->
    for name, details of config.containers
      if typeof details is "string"
        details = config.containers[name] =
          image: details

      details.dependencies = [] if not details.dependencies
      details.aliases = []
      for dependency,i in details.dependencies
        [name, alias] = dependency.split ":"
        details.dependencies[i] = name
        details.aliases[i] = alias

    return config

  parseConfig: (data) -> JSON.parse data

  loadConfig: (file) ->
    log "Loading package file..."
    @processConfig @parseConfig fs.readFileSync file

  commands:
    build: (done) ->
