Module: Redbreast::Helper::Terminal
- Included in:
- Command::ColorGenerator, Command::ColorTestGenerator, Command::ConfigurationInstaller, Command::ImageGenerator, Command::ImageTestGenerator, Command::Setup, ErrorHandler
- Defined in:
- lib/redbreast/helpers/terminal.rb
Overview
Module used for communicatin with user via terminal
Instance Method Summary collapse
Instance Method Details
#prompt ⇒ Object
11 12 13 |
# File 'lib/redbreast/helpers/terminal.rb', line 11 def prompt @prompt ||= TTY::Prompt.new(interrupt: :exit) end |
#success(message = 'Success!') ⇒ Object
7 8 9 |
# File 'lib/redbreast/helpers/terminal.rb', line 7 def success( = 'Success!') prompt.ok() end |