lib/em-ssh/shell.rb
# Open a shell on the server.
# You generally don't need to call this.
# @return [self, Exception]
Open a shell on the server.
You generally don't need to call this.
Open a shell on the server . You generally don ' t need to call this .
def open(&blk)
        f       = Fiber.current
        trace   = caller
        on_open do |s|
          Fiber.new { yield(self) if block_given? }.resume
          f.resume(self)
        end
        @on_open_err = proc { |e| f.resume(e) }
        open!
        return Fiber.yield.tap { |r| raise r if r.is_a?(Exception) }
      end
def open ( & blk ) f = Fiber . current trace = caller on_open do | s | Fiber . new { yield ( self ) if block_given? } . resume f . resume ( self ) end @on_open_err = proc { | e | f . resume ( e ) } open! return Fiber . yield . tap { | r | raise r if r . is_a? ( Exception ) } end
Open a shell on the server.
Open a shell on the server .
None
self, Exception
blk
<not_specific>