Sha256: 0c7bea30d7ee5386a40b02bf4222400745c822cbc351dbfa4f126d0b64fd994a

Contents?: true

Size: 351 Bytes

Versions: 13

Compression:

Stored size: 351 Bytes

Contents

require 'travis/cli'

module Travis
  module CLI
    class Logs < RepoCommand
      def run(number = last_build.number)
        error "##{number} is not a job" 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

13 entries across 13 versions & 1 rubygems

Version Path
travis-1.2.8 lib/travis/cli/logs.rb
travis-1.2.7 lib/travis/cli/logs.rb
travis-1.2.6 lib/travis/cli/logs.rb
travis-1.2.5 lib/travis/cli/logs.rb
travis-1.2.4 lib/travis/cli/logs.rb
travis-1.2.3 lib/travis/cli/logs.rb
travis-1.2.2 lib/travis/cli/logs.rb
travis-1.2.1 lib/travis/cli/logs.rb
travis-1.2.0 lib/travis/cli/logs.rb
travis-1.1.3 lib/travis/cli/logs.rb
travis-1.1.2 lib/travis/cli/logs.rb
travis-1.1.1 lib/travis/cli/logs.rb
travis-1.1.0 lib/travis/cli/logs.rb