# File lib/dister/utils.rb, line 12 def execute_printing_progress message t = Thread.new do print "#{message}" while(true) do print "." STDOUT.flush sleep 1 end end shell = Thor::Shell::Color.new begin ret = yield t.kill if t.alive? shell.say_status "[DONE]", "", :GREEN return ret rescue t.kill if t.alive? shell.say_status "[ERROR]", $!, :RED exit 1 end end