Module: RSGem::Tasks::Output
- Included in:
- Base
- Defined in:
- lib/rsgem/tasks/output.rb
Instance Method Summary collapse
Instance Method Details
#with_output ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/rsgem/tasks/output.rb', line 11 def with_output yield puts "\t#{Colors.colorize('[OK]', :green)} #{name}" puts "\t#{success}" if success puts "\t#{Colors.colorize('Warning: ', :yellow)} #{warning}" if warning rescue RSGem::Errors::Base => e puts "\t#{Colors.colorize('[X]', :red)} #{e.}" raise e end |