class PryRemote::Server

Public Instance Methods

run() click to toggle source

Override the call to Pry.start to save off current Server, pass a pry_remote flag so pry-nav knows this is a remote session, and not kill the server right away

# File lib/pry-nav/pry_remote_ext.rb, line 9
def run
  if PryNav.current_remote_server
    raise 'Already running a pry-remote session!'
  else
    PryNav.current_remote_server = self
  end

  setup
  Pry.start @object, {
    :input  => client.input_proxy,
    :output => client.output,
    :pry_remote => true
  }
end
teardown()
Also aliased as: teardown_without_pry_nav
teardown_with_pry_nav() click to toggle source
# File lib/pry-nav/pry_remote_ext.rb, line 26
def teardown_with_pry_nav
  teardown_without_pry_nav
  PryNav.current_remote_server = nil
end
Also aliased as: teardown
teardown_without_pry_nav()

Override to reset our saved global current server session.

Alias for: teardown