Top Level Namespace

Instance Method Summary collapse

Instance Method Details

#run_gregarious(cmd) ⇒ Object

Runs the given command via cap’s wrapper, which handles things like ssh host key messages, passphrase prompts, and the like



65
66
67
68
69
70
71
# File 'lib/minicap.rb', line 65

def run_gregarious(cmd)
  run cmd do |ch,stream,text|
    ch[:state] ||= { :channel => ch }
    output = Capistrano::Deploy::SCM.new(:git, self).handle_data(ch[:state], stream, text)
    ch.send_data(output) if output
  end
end