class PryRemote::Server
def run
pry_remote flag so pry-nav knows this is a remote session, and not kill
Override the call to Pry.start to save off current Server, pass a
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
def teardown_with_pry_nav
def teardown_with_pry_nav teardown_without_pry_nav PryNav.current_remote_server = nil end