View Source MishkaInstaller.Installer.RunTimeSourcing (Mishka Installer v0.0.3)

This module is created just for compiling and sourcing, hence if you want to work with Json file and the other compiling dependencies please see the MishkaInstaller.Installer.DepHandler module.

Link to this section Summary

Link to this section Types

@type app_name() :: String.t() | atom()
@type do_runtime() :: :application_ensure | :prepend_compiled_apps
@type ensure() :: :bad_directory | :load | :no_directory | :sure_all_started

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

compare_dependencies(installed_apps \\ Application.loaded_applications(), files_list)

View Source
@spec compare_dependencies([tuple()], [String.t()]) :: [String.t()]
@spec consult_app_file(binary()) ::
  {:error,
   {non_neg_integer() | {non_neg_integer(), pos_integer()}, atom(), any()}}
  | {:ok, any()}
  | {:error,
     {non_neg_integer() | {non_neg_integer(), pos_integer()}, atom(), any()},
     non_neg_integer() | {non_neg_integer(), pos_integer()}}
Link to this function

do_deps_compile(app, type \\ :cmd)

View Source
@spec do_runtime(atom(), atom()) ::
  {:ok, :application_ensure} | {:error, do_runtime(), ensure(), any()}
Link to this function

get_build_path(mode \\ Mix.env())

View Source
@spec get_build_path(atom()) :: binary()
Link to this function

prepend_compiled_apps(files_list)

View Source
@spec prepend_compiled_apps(any()) ::
  {:ok, :prepend_compiled_apps} | {:error, do_runtime(), ensure(), list()}
Link to this function

read_app(lib_path, sub_app)

View Source
@spec read_app(binary(), app_name()) :: {:error, atom()} | {:ok, binary()}
@spec subscribe() :: :ok | {:error, {:already_registered, pid()}}