 
     result = Nerves.Utils.HTTPClient.get(pid, location)
     Nerves.Utils.HTTPClient.stop(pid)
-    
+
     result(result, artifact, locations)
   end
 

  defp unpack({:error, _} = error, _, _), do: error
  defp unpack({:ok, tar}, artifact, destination) do
    shell_info """
      Unpacking #{artifact}
      To #{destination}
    """
    tmp_path = Path.join(destination, ".tmp")
    File.mkdir_p!(tmp_path)


  defp download(artifact, [location | locations]) do
    shell_info """

      Downloading Artifact:
        #{artifact}
      From Location:
        #{location}
    """
    {:ok, pid} = Nerves.Utils.HTTPClient.start_link()

