View Source MishkaInstaller.Helper.LibraryMaker (Mishka Installer v0.0.4)
You can find some utility functions in this module which help you to download dependencies from Hex and GitHub and prepare them as library.
testing-resource
Testing resource
- MishkaInstaller.Helper.Sender.package("hex", %{"app" => "req"})
- https://hex.pm/api/packages/req/releases/0.1.0
- https://api.github.com/repos/mishka-group/mishka_installer/tarball/0.0.3
- https://stackoverflow.com/questions/30267943/elixir-download-a-file-image-from-a-url
Link to this section Summary
Functions
A function which download a package from Hex/Github and save it in the deployment/extensions
folder.
Link to this section Functions
@spec download(:github | :hex, String.t(), String.t()) :: list() | {:error, atom(), atom()} | {:ok, :download, :github | :hex, map(), map() | list()}
A function which download a package from Hex/Github and save it in the deployment/extensions
folder.
@spec extract(:tar, String.t()) :: {:error, :extract} | {:ok, :extract}