Last active
December 14, 2015 02:59
-
-
Save ashblue/5017595 to your computer and use it in GitHub Desktop.
Rails 3 "Hello World" rake job
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
# 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