(#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:
Brian Cain 2015-09-05 16:17:45 -07:00
parent fcb43ac379
commit 296f9abb1d
11 changed files with 266 additions and 145 deletions

13
lib/vmfloaty/http.rb Normal file
View 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