lib/makit/show.rb in makit-0.0.30 vs lib/makit/show.rb in makit-0.0.31

- old
+ new

@@ -48,10 +48,16 @@ def directory_symbol # 📁 (U+1F4C1) – "File Folder" "\u{1F4C1}" end + def task_symbol + # 🛠️ (U+1F6E0) Hammer and Wrench – Represents tools, suitable for tasks and automation. + "\u{1F6E0}" + + end + def size(path) if File.file?(path) puts "#{path} size is ".colorize(:grey) + "#{Makit::Humanize.get_humanized_size(File.size(path))}".colorize(:cyan) elsif File.directory?(path) puts "#{path} size is ".colorize(:grey) + "#{Makit::Humanize.get_humanized_size(Makit::Directory.get_size(path))}".colorize(:cyan) @@ -59,10 +65,12 @@ puts "#{path} does not exist" end end def task(task) - puts ":#{task}".colorize(:green) + puts ("=" * 80).colorize(:grey) + puts " ".colorize(:grey) + "#{task}".colorize(:green) + #puts ("=" * 100).colorize(:grey) end end end #Code42-#{VERSION}-win10-x64 ".colorize(:grey) + "#{Makit::Humanize.get_humanized_size(Makit::Directory.get_size("artifacts/Code42-0.0.0-win10-x64"))}".colorize(:cyan)