staging/lib/vcap/staging/plugin/rails3/resources/cf-rails-console/lib/live_console.rb
# Restarts.  Useful for binding changes.  Return value is the same as for
# LiveConsole#start.
Restarts.  Useful for binding changes.  Return value is the same as for
LiveConsole#start.
Restarts . Useful for binding changes . Return value is the same as for LiveConsole#start .
def restart
    r = lambda { stop; start }
    if thread == Thread.current
      Thread.new &r 
    else
      r.call
    end
  end
def restart r = lambda { stop ; start } if thread == Thread . current Thread . new & r else r . call end end
Restarts.
Restarts .
# Leaks a thread, but works.