Skip to content

Instantly share code, notes, and snippets.

@raine
Created June 21, 2011 11:21
Show Gist options
  • Select an option

  • Save raine/1037652 to your computer and use it in GitHub Desktop.

Select an option

Save raine/1037652 to your computer and use it in GitHub Desktop.
require "rake"
@rake = Rake::Application.new
Rake.application = @rake
Rake.application.rake_require "tasks/cron"
Rake::Task.define_task(:environment)
@rake['cron'].invoke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment