Created
March 19, 2020 09:55
-
-
Save amkisko/ba1247b1be0163510f97879a2d659106 to your computer and use it in GitHub Desktop.
Invoke rake task from Rails console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rake" | |
RailsApp::Application.load_tasks | |
Rake::Task["my_task"].invoke |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment