 
     @tab_id = @komp =>
       "#node#{@index}"
+
+  # adds a new ActionLog
+  addLog: (json) =>
+    @logs.push(new ActionLog(json.log))
+
+  # adds output to an existing ActionLog
+  appendLog: (json) =>
+    @logs[json.log_index].appendLog(json)
 
 
 

    else
      @build_num




class Project extends HasUrl

    $.getJSON "/api/v1/project/#{project_name}/#{build_num}", (data) =>
      start_time = Date.now()
      @build(new Build data)
      @build_channel = @pusher.subscribe(@build().pusherChannelName())
      @build_channel.bind('pusher:subscription_error', (status) -> notifyError status)

      window.time_taken_build = Date.now() - start_time


    display "build", {project: project_name, build_num: build_num}


