module DirectSsh
Constants
- VERSION
Public Class Methods
start(host, user, options={}) { |ssh| ... }
click to toggle source
# File lib/direct_ssh.rb, line 9 def self.start(host, user, options={}, &block) validator = Validator.new ssh = validator.start(host, user, options) KeyHandler.send_key_to_remote(ssh) if !validator.direct if block_given? retval = yield ssh ssh.close return retval else return ssh end end