Module: MachineConfigure::Helpers::Message
- Defined in:
- lib/machine_configure/helpers/message.rb
Overview
This helper provides useful error methods, which may abort the script with an error message and a stack traceback.
Constant Summary collapse
- MESSAGE_PADDING =
' '- STACK_TRACE_SIZE =
20- STACK_TRACE_PADDING =
1- @@_error_stack_trace =
true
Class Method Summary collapse
-
.error_no_stack_trace! ⇒ Object
Disable stack trace output on #error method.
-
.error_yes_stack_trace! ⇒ Object
Enable stack trace output on #error method, if it was disabled.
Class Method Details
.error_no_stack_trace! ⇒ Object
Disable stack trace output on #error method.
14 15 16 |
# File 'lib/machine_configure/helpers/message.rb', line 14 def error_no_stack_trace! @@_error_stack_trace = false end |
.error_yes_stack_trace! ⇒ Object
Enable stack trace output on #error method, if it was disabled.
20 21 22 |
# File 'lib/machine_configure/helpers/message.rb', line 20 def error_yes_stack_trace! @@_error_stack_trace = true end |