staging/lib/vcap/staging/plugin/rails3/resources/cf-rails-console/lib/live_console.rb
# LiveConsole#start spawns a thread to listen for, accept, and provide an
# IRB console to new connections.  If a thread is already running, this
# method simply returns false; otherwise, it returns the new thread.
LiveConsole#start spawns a thread to listen for, accept, and provide an
IRB console to new connections.  If a thread is already running, this
method simply returns false; otherwise, it returns the new thread.
LiveConsole#start spawns a thread to listen for accept and provide an IRB console to new connections . If a thread is already running this method simply returns false ; otherwise it returns the new thread .
def start
    if thread
      if thread.alive?
        return false
      else
        thread.join
        self.thread = nil
      end
    end
    self.thread = Thread.new {
      start_blocking
    }
    thread
  end
def start if thread if thread . alive? return false else thread . join self . thread = nil end end self . thread = Thread . new { start_blocking } thread end
LiveConsole#start spawns a thread to listen for, accept, and provide an
IRB console to new connections.
LiveConsole#start spawns a thread to listen for accept and provide an IRB console to new connections .