lib/makit/tasks.rb in makit-0.0.21 vs lib/makit/tasks.rb in makit-0.0.22

- old
+ new

@@ -1,24 +1,12 @@ # frozen_string_literal: true require "digest" require "rake/clean" #require "sqlite3" -# Register the at_exit hook for cleanup -at_exit do - puts "Performing cleanup for Makit..." - # Add your cleanup code here - # For example, close files, remove temporary files, etc. - # store current state of Makit::PROJECT to a file - #json_filename = File.join(Makit::Directories::PROJECT_ROOT, ".makit.project.json") - #puts "Saving project state to #{json_filename}" - #Makit::PROJECT.save_as(json_filename) - #yml_filename = File.join(Makit::Directories::PROJECT_ROOT, ".makit.project.yml") - #puts "Saving project state to #{yml_filename}" - # Makit::PROJECT.save_as(yml_filename) -end + # This module provides classes for the Makit gem. module Makit # This class provide methods for managing persistent data for the makit gem class Tasks def self.run_default_commands(task_name) @@ -61,7 +49,9 @@ end end # Register the at_exit hook for cleanup at_exit do - puts "at_exit in tasks.rb...." + #puts "at_exit in tasks.rb...." + duration = Time.now - Makit::STARTTIME + puts " completed in ".colorize(:grey) + Makit::Humanize.get_humanized_duration(duration).colorize(:green) end