module Thor::Util
def self.find_class_and_task_by_namespace!(namespace)
The same as namespace_to_thor_class_and_task!, but raises an error if a klass
def self.find_class_and_task_by_namespace!(namespace) klass, task = find_class_and_task_by_namespace(namespace) raise Error, "Could not find namespace or task #{namespace.inspect}." unless klass return klass, task end