Skip to content

Instantly share code, notes, and snippets.

@amkisko
Created March 19, 2020 09:55
Show Gist options
  • Save amkisko/ba1247b1be0163510f97879a2d659106 to your computer and use it in GitHub Desktop.
Save amkisko/ba1247b1be0163510f97879a2d659106 to your computer and use it in GitHub Desktop.
Invoke rake task from Rails console
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