Exception: Tomo::Runtime::NoTasksError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Error

raise_with

Methods included from Colors

enabled?

Instance Attribute Details

#task_typeObject

Returns the value of attribute task_type.



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

def task_type
  @task_type
end

Instance Method Details

#to_consoleObject



8
9
10
11
12
13
14
15
16
17
# File 'lib/tomo/runtime/no_tasks_error.rb', line 8

def to_console
  <<~ERROR
    No #{task_type} tasks are configured.
    You can specify them using a #{yellow(task_type)} block in #{yellow(Tomo::DEFAULT_CONFIG_PATH)}.

    More configuration documentation and examples can be found here:

      #{blue('https://tomo.mattbrictson.com/configuration')}
  ERROR
end