Class: FluentCommandBuilder::Printer
- Inherits:
-
Object
- Object
- FluentCommandBuilder::Printer
- Includes:
- Term::ANSIColor
- Defined in:
- lib/fluent_command_builder/internal/printer.rb
Instance Method Summary collapse
Instance Method Details
#print_command(command) ⇒ Object
17 18 19 20 |
# File 'lib/fluent_command_builder/internal/printer.rb', line 17 def print_command(command) print magenta, command, reset, "\n" $stdout.flush end |
#print_error(message) ⇒ Object
12 13 14 15 |
# File 'lib/fluent_command_builder/internal/printer.rb', line 12 def print_error() $stderr.print red, 'Error: ', , reset, "\n" $stderr.flush end |
#print_warning(message) ⇒ Object
7 8 9 10 |
# File 'lib/fluent_command_builder/internal/printer.rb', line 7 def print_warning() $stderr.print yellow, 'Warning: ', , reset, "\n" $stderr.flush end |