Module: Glue::Helper
- Included in:
- Generator, Template::Parser
- Defined in:
- lib/glue/helper.rb
Instance Method Summary collapse
Instance Method Details
#run(message, &block) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/glue/helper.rb', line 3 def run(, &block) $stdout << "\n#{message}... " begin yield $stdout << Colorize.green("done!") rescue Exception => e $stdout << Colorize.red("error ~ #{e.message}") end end |