Skip to content
Snippets Groups Projects
Commit 9321873e authored by Jack Nagel's avatar Jack Nagel
Browse files

Use predicate method and eliminate local

parent f6eedf94
No related branches found
No related tags found
No related merge requests found
......@@ -116,13 +116,12 @@ class Step
@time = Time.now - start_time
success = $?.success?
@status = success ? :passed : :failed
@status = $?.success? ? :passed : :failed
puts_result
if File.exist?(log)
@output = File.read(log)
if has_output? and (not success or @puts_output_on_success)
if has_output? and (failed? or @puts_output_on_success)
puts @output
end
FileUtils.rm(log) unless ARGV.include? "--keep-logs"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment