Module: Shaman::Helpers
Instance Method Summary collapse
Instance Method Details
#error!(msg) ⇒ Object
7 8 9 10 |
# File 'lib/shaman/helpers.rb', line 7 def error!(msg) prompt.error(msg) exit(-1) end |
#prompt ⇒ Object
3 4 5 |
# File 'lib/shaman/helpers.rb', line 3 def prompt @prompt ||= TTY::Prompt.new end |