mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 21:38:41 -05:00
Add verbose to methods
This commit is contained in:
parent
44c5315bfd
commit
201f59c376
4 changed files with 39 additions and 39 deletions
|
|
@ -1,10 +1,10 @@
|
|||
require 'faraday'
|
||||
|
||||
class Http
|
||||
def self.get_conn(url)
|
||||
def self.get_conn(verbose, url)
|
||||
conn = Faraday.new(:url => url) do |faraday|
|
||||
faraday.request :url_encoded
|
||||
faraday.response :logger
|
||||
faraday.response :logger if verbose
|
||||
faraday.adapter Faraday.default_adapter
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue