View Source MishkaInstaller.Helper.LibraryMaker (Mishka Installer v0.0.4-beta.1)

You can find some utility functions in this module which help you to download dependencies from Hex and GitHub and prepare them as library.

TODO: unziper into RunTimeSourcing module

testing-resource

Testing resource

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

Link to this function

change_uploaded_file(file_path, app_name)

View Source
@spec change_uploaded_file(String.t(), String.t()) :: [binary()]
Link to this function

download(atom, app, version)

View Source
@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.

Link to this function

extract(atom, archived_file)

View Source
@spec extract(:tar, String.t()) :: {:error, :extract} | {:ok, :extract}
@spec run(:github | :hex, String.t(), String.t()) ::
  list() | {:error, atom(), atom()} | {:ok, :run, binary()}