Skip to content

Instantly share code, notes, and snippets.

@mark
Created July 18, 2011 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mark/1089671 to your computer and use it in GitHub Desktop.
Save mark/1089671 to your computer and use it in GitHub Desktop.
Regular expression rake tasks
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