lib/buildbox/api.rb
# Faraday uses debug to show response information, but when the agent is in
# DEBUG mode, it's kinda useless noise. So we use a ProxyLogger to only push
# the information we care about to the logger.
Faraday uses debug to show response information, but when the agent is in
DEBUG mode, it's kinda useless noise. So we use a ProxyLogger to only push
the information we care about to the logger.
Faraday uses debug to show response information but when the agent is in DEBUG mode it ' s kinda useless noise . So we use a ProxyLogger to only push the information we care about to the logger .
def agent(access_token, options)
      put(access_token, options)
    rescue Faraday::Error::ClientError => e
      if e.response && e.response[:status] == 404
        raise AgentNotFoundError.new(e, e.response)
      else
        raise ServerError.new(e, e.response)
      end
    end
def agent ( access_token , options ) put ( access_token , options ) rescue Faraday :: Error :: ClientError => e if e . response && e . response [ :status ] == 404 raise AgentNotFoundError . new ( e , e . response ) else raise ServerError . new ( e , e . response ) end end
Faraday uses debug to show response information, but when the agent is in
DEBUG mode, it's kinda useless noise.
Faraday uses debug to show response information but when the agent is in DEBUG mode it ' s kinda useless noise .
access_token
options