Method: Jets::CLI#lookup
- Defined in:
- lib/jets/cli.rb
#lookup(full_command) ⇒ Object
-
look up Thor tasks
-
look up Rake tasks
-
help menu with all commands when both Thor and Rake tasks are not found
108 109 110 111 112 113 114 115 116 117 118 |
# File 'lib/jets/cli.rb', line 108 def lookup(full_command) thor_task_found = Jets::Commands::Base.namespaced_commands.include?(full_command) if thor_task_found return Jets::Commands::Base.klass_from_namespace(namespace) end rake_task_found = Jets::Commands::RakeCommand.namespaced_commands.include?(full_command) if rake_task_found return Jets::Commands::RakeCommand end end |