Class: AcquiaToolbelt::CLI::UI
- Inherits:
-
Object
- Object
- AcquiaToolbelt::CLI::UI
- Defined in:
- lib/acquia_toolbelt/cli/ui.rb
Instance Method Summary collapse
-
#debug(text) ⇒ Object
Internal: Used for outputting a pretty debug message.
-
#fail(text) ⇒ Object
Internal: Used for outputting a pretty error message.
-
#info(text) ⇒ Object
Internal: Used for outputting a pretty info message.
-
#success(text) ⇒ Object
Internal: Used for outputting a pretty success message.
Instance Method Details
#debug(text) ⇒ Object
Internal: Used for outputting a pretty debug message.
text - The text to run through and output to the end user.
Returns the string coloured and formatted.
39 40 41 |
# File 'lib/acquia_toolbelt/cli/ui.rb', line 39 def debug(text) puts "#{text}".foreground(:yellow) end |
#fail(text) ⇒ Object
Internal: Used for outputting a pretty error message.
text - The text to run through and output to the end user.
Returns the string coloured and formatted.
21 22 23 |
# File 'lib/acquia_toolbelt/cli/ui.rb', line 21 def fail(text) puts "#{text}".foreground(:red) end |
#info(text) ⇒ Object
Internal: Used for outputting a pretty info message.
text - The text to run through and output to the end user.
Returns the string coloured and formatted.
30 31 32 |
# File 'lib/acquia_toolbelt/cli/ui.rb', line 30 def info(text) puts "#{text}".foreground(:cyan) end |
#success(text) ⇒ Object
Internal: Used for outputting a pretty success message.
text - The text to run through and output to the end user.
Returns the string coloured and formatted.
12 13 14 |
# File 'lib/acquia_toolbelt/cli/ui.rb', line 12 def success(text) puts "#{text}".foreground(:green) end |