View Source MishkaInstaller.Helper.Sender (Mishka Installer v0.0.4)
To begin, we look at the hex.pm
website in an effort to get some fundamental information.
Despite this, after several versions of MishkaInstaller have been released,
this API may prove to be helpful for managing packages from within an administrative panel.
reference
Reference
Link to this section Summary
Functions
This is an executor function and has several different modes, including
Link to this section Types
@type app() :: map()
Link to this section Functions
@spec package(String.t(), app()) :: list() | {:error, :package, :mix_file | :not_found | :not_tag | :unhandled} | {:ok, :package, any()}
This is an executor function and has several different modes, including:
- Get information from
hex.pm
website - Getting information from GitHub
- Getting information from the latest GitHub releases
- Get information from the latest GitHub tags
examples
Examples
MishkaInstaller.Helper.Sender.package("hex", %{"app" => app})
# or
MishkaInstaller.Helper.Sender.package("github", %{"url" => app.url, "tag" => app.tag})
# or
MishkaInstaller.Helper.Sender.package("github_latest_release", json_data["url"])
# or
MishkaInstaller.Helper.Sender.package("github_latest_tag", json_data["url"])