Commit 31cc7f16d6c54d43e4c702d81818ec8e8c6797a0

Stephen Moloney 2017-03-16T15:21:00

missing module Request and add @default_adapter to mix task

diff --git a/lib/ex_ovh/client.ex b/lib/ex_ovh/client.ex
index 4153226..3e010a6 100644
--- a/lib/ex_ovh/client.ex
+++ b/lib/ex_ovh/client.ex
@@ -101,7 +101,7 @@ defmodule ExOvh.Client do
       @spec prepare_request(HTTPipe.Conn.t | HTTPipe.Request.t) :: HTTPipe.Conn.t
       def prepare_request(conn) do
         client = unquote(opts) |> Keyword.fetch!(:client)
-        Request.apply_transformations(conn, client)
+        ExOvh.Request.apply_transformations(conn, client)
       end
 
       @doc "Sends a request to the ovh api using [httpipe](https://hex.pm/packages/httpipe)."
diff --git a/lib/mix/tasks/ovh.ex b/lib/mix/tasks/ovh.ex
index 5d690b0..13d4496 100644
--- a/lib/mix/tasks/ovh.ex
+++ b/lib/mix/tasks/ovh.ex
@@ -207,6 +207,7 @@ defmodule Mix.Tasks.Ovh do
         body: body,
         headers: headers
       },
+      adapter: @default_adapter,
       adapter_options: options
     }
     {:ok, conn} = HTTPipe.Conn.execute(conn)
@@ -269,6 +270,7 @@ defmodule Mix.Tasks.Ovh do
         body: body,
         headers: headers
       },
+      adapter: @default_adapter,
       adapter_options: options
     }
     {:ok, conn} = HTTPipe.Conn.execute(conn)
@@ -326,6 +328,7 @@ defmodule Mix.Tasks.Ovh do
         body: body,
         headers: headers
       },
+      adapter: @default_adapter,
       adapter_options: options
     }
     {:ok, conn} = HTTPipe.Conn.execute(conn)
@@ -351,6 +354,7 @@ defmodule Mix.Tasks.Ovh do
         body: body,
         headers: headers
       },
+      adapter: @default_adapter,
       adapter_options: options
     }
     {:ok, conn} = HTTPipe.Conn.execute(conn)
@@ -428,6 +432,7 @@ defmodule Mix.Tasks.Ovh do
         body: body,
         headers: headers
       },
+      adapter: @default_adapter,
       adapter_options: options
     }
     {:ok, conn} = HTTPipe.Conn.execute(conn)
@@ -515,6 +520,7 @@ defmodule Mix.Tasks.Ovh do
         body: body,
         headers: headers
       },
+      adapter: @default_adapter,
       adapter_options: options
     }
     {:ok, conn} = HTTPipe.Conn.execute(conn)