lib/jets/commands/base.rb in jets-1.0.5 vs lib/jets/commands/base.rb in jets-1.0.6
- old
+ new
@@ -77,9 +77,10 @@
# process:controller
# dynamodb:migrate:down
def namespaced_commands
eager_load!
subclasses.map do |klass|
+ # This all_tasks is part of Thor not the lambda/dsl.rb
klass.all_tasks.keys.map do |task_name|
klass = klass.to_s.sub('Jets::Commands::','')
namespace = klass =~ /^Main/ ? nil : klass.underscore.gsub('/',':')
[namespace, task_name].compact.join(':')
end