Class: Artifact::Log

Inherits:
Artifact
  • Object
show all
Defined in:
lib/travis/model/artifact/log.rb

Class Method Summary collapse

Class Method Details

.append(job_id, chars) ⇒ Object

use job_id to avoid loading a log artifact into memory



4
5
6
# File 'lib/travis/model/artifact/log.rb', line 4

def append(job_id, chars)
  update_all(["content = COALESCE(content, '') || ?", chars], ["job_id = ?", job_id])
end