Created
May 3, 2011 15:39
-
-
Save edavis10/953562 to your computer and use it in GitHub Desktop.
Rake
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
desc "Send a test email to the user with the provided login name" | |
task :test, :login, :needs => :environment do |task, args| | |
# uses args[:login] | |
end |
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
$ rake -T email:test | |
rake redmine:email:test[login] # Send a test email to the user with the provided login name | |
$ rake redmine:email:test login=admin | |
An email was sent to admin@example.net |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment