Skip to content

Instantly share code, notes, and snippets.

@heph
Last active December 15, 2015 12:29
Show Gist options
  • Save heph/5260581 to your computer and use it in GitHub Desktop.
Save heph/5260581 to your computer and use it in GitHub Desktop.
Capistrano prompt for username and password with default value
set(:user, Capistrano::CLI.ui.ask("Username ") {|q| q.default = Etc.getlogin })
set(:password, Capistrano::CLI.password_prompt("Password "))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment