Rake task with input?

I’d like to be able to write a rake task that takes input during the
execution of the task. Something like:

rake my:rake:task
About to blow away the universe. Proceed? [Y/n]

How do I do dat?

Thanks,
nerdytenor