chef

https://github.com/opscode/chef

Ruby

A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.

Chef::Knife::Ssh#read_line

Present the prompt and read a single line from the console. It also
detects ^D and returns "exit" in that case. Adds the input to the
history, unless the input is empty. Loops repeatedly until a non-empty
line is input.

Source | Google | Stack overflow

Edit

git clone [email protected]:opscode/chef.git

cd chef

open knife/lib/chef/knife/ssh.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Chef--Knife--Ssh-read_line-for-pr


# Commit to git

git add knife/lib/chef/knife/ssh.rbgit commit -m "better docs for Chef::Knife::Ssh#read_line"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Chef--Knife--Ssh-read_line-for-pr

hub pull-request


# Celebrate!