# Rake task with input?

**URL:** <https://www.ruby-forum.com/t/rake-task-with-input/115038>\
**Category:** Rails\
**Created:** [September 20, 2007, 12:28am UTC](https://www.ruby-forum.com/t/rake-task-with-input/115038 "2007-09-20T00:28:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dandante](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/9fc29f/32.png) [@dandante](https://www.ruby-forum.com/u/dandante)\
**Post date:** [September 20, 2007, 12:28am UTC](https://www.ruby-forum.com/t/rake-task-with-input/115038/1 "2007-09-20T00:28:17Z")

</div>

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
