class Net::SSH::Connection::Session
Public Instance Methods
shell(*args) { |shell| ... }
click to toggle source
Provides a convenient way to initialize a shell given a Net::SSH
session. Yields the new shell if a block is given. Returns the shell instance.
# File lib/net/ssh/shell.rb, line 180 def shell(*args) shell = Net::SSH::Shell.new(self, *args) yield shell if block_given? shell end