lib/pray-remote/pray-remote.rb
# Code that has to be called after setup to return to the initial state
Code that has to be called after setup to return to the initial state
Code that has to be called after setup to return to the initial state
def teardown
      Pry.config.editor = @old_editor
      Pry.config.pager  = @old_pager
      Pry.config.system = @old_system
      STDOUT.puts "[pry-remote] Remote session terminated"
      begin
        @client.kill
      rescue DRab::DRabConnError
        STDOUT.puts "[pry-remote] Continuing to stop service"
      ensure
        STDOUT.puts "[pry-remote] Ensure stop service"
        DRab.stop_service
      end
    end
def teardown Pry . config . editor = @old_editor Pry . config . pager = @old_pager Pry . config . system = @old_system STDOUT . puts "[pry-remote] Remote session terminated" begin @client . kill rescue DRab :: DRabConnError STDOUT . puts "[pry-remote] Continuing to stop service" ensure STDOUT . puts "[pry-remote] Ensure stop service" DRab . stop_service end end
Code that has to be called after setup to return to the initial state
Code that has to be called after setup to return to the initial state
# Reset config