Sha256: c2fb38d1f793e4fec115d3d49a1edb3ae5e7da73cc013986846f9ca0935ccc93
Contents?: true
Size: 368 Bytes
Versions: 3
Compression:
Stored size: 368 Bytes
Contents
require 'travis/cli' module Travis module CLI class Logs < RepoCommand def run(number = last_build.number) error "##{number} is not a job, try #{number}.1" unless job = job(number) say log(job) end private def log(job) interactive? ? job.log.colorized_body : job.log.clean_body end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
travis-1.4.0 | lib/travis/cli/logs.rb |
travis-1.3.1 | lib/travis/cli/logs.rb |
travis-1.3.0 | lib/travis/cli/logs.rb |