-1

I'm building a gem with a list of rake tasks. I have this:

#/lib/tasks/my_gem.rake:

namespace :my_gem do
  task :task1 do
    puts "Hello"
  end
end

I install the gem to a rails application and run rake -T. And there's no task "task1" or anything related to "my_gem".

Ko32mo
  • 107
  • 8

1 Answers1

1

Add a description, like so:

namespace :my_gem do
  desc "my task"
  task :task1 do
    puts "Hello"
  end
end
Roger
  • 7,535
  • 5
  • 41
  • 63