Class: Capistrano::Shell::ReadlineFallback

Inherits:
Object
  • Object
show all
Defined in:
lib/capistrano/shell.rb

Overview

A Readline replacement for platforms where readline is either unavailable, or has not been installed.

Class Method Summary collapse

Class Method Details

.readline(prompt, *args) ⇒ Object



62
63
64
65
66
# File 'lib/capistrano/shell.rb', line 62

def self.readline(prompt, *args)
  STDOUT.print(prompt)
  STDOUT.flush
  STDIN.gets
end