Skip to content

Instantly share code, notes, and snippets.

@josephwilk
Created October 23, 2009 16:20
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 josephwilk/217010 to your computer and use it in GitHub Desktop.
Save josephwilk/217010 to your computer and use it in GitHub Desktop.
def undefine_task(*names)
app = Rake.application
tasks = app.instance_variable_get('@tasks')
names.flatten.each { |name| tasks.delete(name) }
end
undefine_task('spec')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment