Created
July 18, 2011 14:28
-
-
Save mark/1089671 to your computer and use it in GitHub Desktop.
Regular expression rake tasks
This file contains hidden or 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
namespace :ticket do | |
rule "" do |t| | |
if t.name =~ /ticket:(\d+)/ | |
puts "Looking for ticket ##{$1}" | |
puts `rake notes:custom ANNOTATION=TIX#{$1}` | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment