Sha256: 2a4f55aab32c7795b390469a020be699d56664bbebed9d83a6b855890eeda9ba
Contents?: true
Size: 605 Bytes
Versions: 1
Compression:
Stored size: 605 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 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 #while(line.length < 80) do # line = line + "=" #end puts line puts " " end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dev_tasks-0.0.4 | lib/console.rb |