module Makit::Logging
def self.log_rake_duration
def self.log_rake_duration # use the STARTTIME constant to log the duration of the rake task # to the log/rake.duration.txt file duration = Time.now - STARTTIME FileUtils.mkdir_p("log") unless Dir.exist?("log") File.open("log/rake.duration.txt", "a") do |file| file.puts "Rake task duration: #{duration} seconds" end end