Skip to content

Instantly share code, notes, and snippets.

@ashblue
Last active December 14, 2015 02:59
Show Gist options
  • Save ashblue/5017595 to your computer and use it in GitHub Desktop.
Save ashblue/5017595 to your computer and use it in GitHub Desktop.
Rails 3 "Hello World" rake job
# Rails 3
# Place in lib/tasks/helloworld.rake
# Call via "rake hello:world"
# Primary name of the rake job you'll call
namespace :hello do
# Task of the rake job, can support multiple tasks
task :world do
print 'hello world'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment