Packages
Toolbox is a convenience library designed to streamline the creation of Altworx scenarios.
Current section
Files
Jump to
Current section
Files
lib/toolbox/application.ex
defmodule Toolbox.Application do
@moduledoc false
use Application
alias Toolbox.Utils.Path, as: PathUtils
def start(_type, _args) do
:ok = set_altworx_root()
:ok = check_configuration()
children = []
Supervisor.start_link(children, strategy: :one_for_one)
end
defp set_altworx_root do
PathUtils.set_altworx_root(System.get_env("PWD"))
end
defp check_configuration do
Application.fetch_env!(:toolbox, :scenario_config_dir)
:ok
end
end