lib/travis/cli/logs.rb in travis-1.4.0 vs lib/travis/cli/logs.rb in travis-1.5.0
- old
+ new
@@ -1,18 +1,14 @@
require 'travis/cli'
+require 'travis/tools/safe_string'
module Travis
module CLI
class Logs < RepoCommand
+ include Tools::SafeString
def run(number = last_build.number)
error "##{number} is not a job, try #{number}.1" unless job = job(number)
- say log(job)
+ job.log.body { |part| print interactive? ? encoded(part) : clean(part) }
end
-
- private
-
- def log(job)
- interactive? ? job.log.colorized_body : job.log.clean_body
- end
end
end
end
\ No newline at end of file