Top Level Namespace

Defined Under Namespace

Modules: SecretService

Instance Method Summary collapse

Instance Method Details

#run_with_prompt(command) ⇒ Object



1
2
3
4
5
6
7
8
# File 'lib/secret_service/capistrano.rb', line 1

def run_with_prompt(command)
  run command do |input, stream, out|
    puts out
    if stream == :out and out =~ /^Enter/
      input.send_data STDIN.gets
    end
  end
end