Method: Thor::Base::ClassMethods#handle_no_task_error
- Defined in:
- lib/thor/base.rb
#handle_no_task_error(task) ⇒ Object
:nodoc:
412 413 414 415 416 417 418 |
# File 'lib/thor/base.rb', line 412 def handle_no_task_error(task) #:nodoc: if $thor_runner raise UndefinedTaskError, "Could not find task #{task.inspect} in #{namespace.inspect} namespace." else raise UndefinedTaskError, "Could not find task #{task.inspect}." end end |