Sha256: fc5e21e56c5de5d9f0aa578ef34e36d6eff5e1bb2f454e7e385bbbdf687ccfd6
Contents?: true
Size: 573 Bytes
Versions: 2
Compression:
Stored size: 573 Bytes
Contents
require 'term/ansicolor' class Color extend Term::ANSIColor end class Console def self.announce_task_start task line = "==" + Color.cyan + "[:" + Color.yellow + task + Color.cyan + "]" + Color.clear while(line.length < 80) do line = line + "=" end puts line + Color.clear end def self.announce_task_end task, elapsed_str line = "==" + Color.cyan + "[:" + Color.yellow + task + Color.cyan + "]" + Color.clear + " completed in " + Color.bright_green + elapsed_str + Color.clear puts line + Color.clear puts " " end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dev_tasks-0.0.6 | lib/console.rb |
dev_tasks-0.0.5 | lib/console.rb |