Module: Redbreast::Helper::Terminal

Overview

Module used for communicatin with user via terminal

Instance Method Summary collapse

Instance Method Details

#promptObject



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(message = 'Success!')
  prompt.ok(message)
end