PSA: if you're library includes a `railties.rb` file, please, PLEASE, include a `my_task.rb` file and `Rake::TaskLib` sub-class that non-rails users can require and initialize.


Also, by defining your rake task as a class, this makes it much easier to test the other non-rake-task-specific helper methods which houses the actual logic.

Sign in to participate in the conversation

A Mastodon instance for Rubyists & friends