Same run stats
This commit is contained in:
parent
16ea9b47f3
commit
f7964df0b6
|
@ -40,6 +40,7 @@ module RakeControl
|
||||||
end
|
end
|
||||||
|
|
||||||
def save_statistics
|
def save_statistics
|
||||||
|
Run.create(name: name, success: success, execution_time: execution_time) if defined?(Run)
|
||||||
puts "Task #{name} #{success ? 'finished successfully' : 'failed'}"
|
puts "Task #{name} #{success ? 'finished successfully' : 'failed'}"
|
||||||
puts "Execution time: #{execution_time.round(4)}"
|
puts "Execution time: #{execution_time.round(4)}"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue