def get_request(path)
      resp = nil
      begin
        Timeout::timeout(5) do
          resp = do_http_request(path)
        end
      rescue => e
        raise NetBooter::Error.new("Error connecting to relay: #{e.message}")
      end
      resp
    end
def get_request(path)
      resp = nil
      begin
        Timeout::timeout(5) do
          resp = do_http_request(path)
        end
      rescue => e
        raise NetBooter::Error.new("Error connecting to relay: 
      end
      resp
    end
def get_request ( path ) resp = nil begin Timeout :: timeout ( 5 ) do resp = do_http_request ( path ) end rescue => e raise NetBooter :: Error . new ( "Error connecting to relay: #{e.message}" ) end resp end
Make an http request and return the result.
Make an http request and return the result .