Sha256: c86fa28725d74cf99aade4a33ff3098fc0c2065c309e050c2db20302a43f5dcc
Contents?: true
Size: 799 Bytes
Versions: 1
Compression:
Stored size: 799 Bytes
Contents
module Capistrano # The CLI class encapsulates the behavior of capistrano when it is invoked # as a command-line utility. This allows other programs to embed ST and # preserve it's command-line semantics. class CLI # Prompt for a password using echo suppression. def self.password_prompt(prompt="Password: ") sync = STDOUT.sync begin with_echo do STDOUT.sync = true print(prompt) STDIN.gets.chomp end ensure STDOUT.sync = sync puts end end def self.prompt(prompt="Password: ") sync = STDOUT.sync begin STDOUT.sync = true print(prompt) STDIN.gets.chomp ensure STDOUT.sync = sync puts end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
deprec-1.8.0 | lib/deprec/capistrano_extensions/cli_extensions.rb |