       log "Uploading tarball..."
       docker.buildImage tarball, options, (err, res) ->
         return done err if err
-        
+
         res.pipe process.stdout
 
         res.on "end", ->


module.exports =
class Decking
  constructor: (options) ->
    {@command, @args} = options

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

  processConfig: (config) ->
    for name, details of config.containers

    fn = @commands[@command]

    throw new Error "Invalid argument" if typeof fn isnt "function"

    @config = @loadConfig "./decking.json" if @command isnt "help"

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

