Skip to content

Instantly share code, notes, and snippets.

@dLobatog
Created July 30, 2019 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dLobatog/9d18276de2e47761988b9824fd058054 to your computer and use it in GitHub Desktop.
Save dLobatog/9d18276de2e47761988b9824fd058054 to your computer and use it in GitHub Desktop.
def connection
faraday = Faraday.new do |f|
f.response :raise_error
f.adapter Faraday.default_adapter # this must be the last middleware
f.ssl[:verify] = false
end
faraday.basic_auth 'insights-qa', 'redhat'
faraday
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment