diff --git a/lib/rake_control/wrapper.rb b/lib/rake_control/wrapper.rb index a316868..b90fe27 100644 --- a/lib/rake_control/wrapper.rb +++ b/lib/rake_control/wrapper.rb @@ -40,6 +40,7 @@ module RakeControl end def save_statistics + Run.create(name: name, success: success, execution_time: execution_time) if defined?(Run) puts "Task #{name} #{success ? 'finished successfully' : 'failed'}" puts "Execution time: #{execution_time.round(4)}" end