Module: Net::SSH
- Defined in:
- lib/hussh.rb
Class Method Summary collapse
Class Method Details
.start_with_hussh(host, user, options = {}, &block) ⇒ Object Also known as: start
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/hussh.rb', line 11 def start_with_hussh(host, user, = {}, &block) # TODO: Let's do this later once everything else is working. # if Hussh.has_recording? || Hussh.allow_connections? session = Hussh::Session.new(host, user) if block_given? yield session session.close else session end # end end |