Exception: Tomo::Runtime::TaskAbortedError
- Defined in:
- lib/tomo/runtime/task_aborted_error.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#task ⇒ Object
Returns the value of attribute task.
Instance Method Summary collapse
Methods inherited from Error
Methods included from Colors
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
6 7 8 |
# File 'lib/tomo/runtime/task_aborted_error.rb', line 6 def host @host end |
#task ⇒ Object
Returns the value of attribute task.
6 7 8 |
# File 'lib/tomo/runtime/task_aborted_error.rb', line 6 def task @task end |
Instance Method Details
#to_console ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/tomo/runtime/task_aborted_error.rb', line 8 def to_console <<~ERROR The #{yellow(task)} task failed on #{yellow(host)}. #{red()} ERROR end |