Exception: Tomo::Runtime::TaskAbortedError

Inherits:
Error
  • Object
show all
Defined in:
lib/tomo/runtime/task_aborted_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Error

raise_with

Methods included from Colors

enabled?

Instance Attribute Details

#hostObject

Returns the value of attribute host.



6
7
8
# File 'lib/tomo/runtime/task_aborted_error.rb', line 6

def host
  @host
end

#taskObject

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_consoleObject



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(message)}
  ERROR
end