lib/autobuild/subcommand.rb in autobuild-1.5.27 vs lib/autobuild/subcommand.rb in autobuild-1.5.28

- old
+ new

@@ -242,9 +242,10 @@ raise Failed.new(status.exitstatus), "'#{command.join(' ')}' returned status #{status.exitstatus}" end duration = Time.now - start_time Autobuild.add_stat(target, phase, duration) + FileUtils.mkdir_p(Autobuild.logdir) File.open(File.join(Autobuild.logdir, "stats.log"), 'a') do |io| io.puts "#{target_name} #{phase} #{duration}" end if target.respond_to?(:add_stat) target.add_stat(phase, duration)