3 4 5 6 7 8 9 10 11 12
# File 'lib/glue/helper.rb', line 3 def run(message, &block) $stdout << "\n#{message}... " begin yield $stdout << Colorize.green("done!") rescue Exception => e $stdout << Colorize.red("error ~ #{e.message}") end end