Terminal Asks for Email and Password, how do I Programmatically fill it out (in Ruby)?
- by viatropos
I am running a command to push files to Google App Engine, and it might ask me for my email and password:
$ appcfg.py update .
Email: [email protected]
Password:
I am running that in Ruby right now using this: %x[appcfg.py update .]. How can I fill out the email and password? I have seen something like this with capistrano:
%x[appcfg.py update .] do |channel, stream, data|
channel.send_data "#{yaml['production']['email']}\n" if data =~ /^Email:/
end
...but haven't figured out how to set that up without it.
What's the best way to fill out things the command line asks for programmatically?