Class: Capistrano::Shell::ReadlineFallback
- Inherits:
-
Object
- Object
- Capistrano::Shell::ReadlineFallback
- Defined in:
- lib/capistrano/shell.rb
Overview
A Readline replacement for platforms where readline is either unavailable, or has not been installed.
Constant Summary collapse
- HISTORY =
:nodoc:
[]
Class Method Summary collapse
Class Method Details
.readline(prompt) ⇒ Object
17 18 19 20 21 |
# File 'lib/capistrano/shell.rb', line 17 def self.readline(prompt) STDOUT.print(prompt) STDOUT.flush STDIN.gets end |