mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 21:38:41 -05:00
(#1) Update vmfloaty to use new vmpooler api
This commit also uses commander for arg parsing. This commit is a WIP.
This commit is contained in:
parent
fcb43ac379
commit
296f9abb1d
11 changed files with 266 additions and 145 deletions
13
lib/vmfloaty/http.rb
Normal file
13
lib/vmfloaty/http.rb
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
require 'faraday'
|
||||
|
||||
class Http
|
||||
def self.get_conn(url)
|
||||
conn = Faraday.new(:url => url) do |faraday|
|
||||
faraday.request :url_encoded
|
||||
faraday.response :logger
|
||||
faraday.adapter Faraday.default_adapter
|
||||
end
|
||||
|
||||
return conn
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue