feat(agent): otp app scaffold with slipstream + toml deps
This commit is contained in:
parent
9e55eae6a1
commit
70923eebfa
9 changed files with 140 additions and 0 deletions
18
agent/lib/proxmox_agent.ex
Normal file
18
agent/lib/proxmox_agent.ex
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
defmodule ProxmoxAgent do
|
||||
@moduledoc """
|
||||
Documentation for `ProxmoxAgent`.
|
||||
"""
|
||||
|
||||
@doc """
|
||||
Hello world.
|
||||
|
||||
## Examples
|
||||
|
||||
iex> ProxmoxAgent.hello()
|
||||
:world
|
||||
|
||||
"""
|
||||
def hello do
|
||||
:world
|
||||
end
|
||||
end
|
||||
20
agent/lib/proxmox_agent/application.ex
Normal file
20
agent/lib/proxmox_agent/application.ex
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
defmodule ProxmoxAgent.Application do
|
||||
# See https://hexdocs.pm/elixir/Application.html
|
||||
# for more information on OTP Applications
|
||||
@moduledoc false
|
||||
|
||||
use Application
|
||||
|
||||
@impl true
|
||||
def start(_type, _args) do
|
||||
children = [
|
||||
# Starts a worker by calling: ProxmoxAgent.Worker.start_link(arg)
|
||||
# {ProxmoxAgent.Worker, arg}
|
||||
]
|
||||
|
||||
# See https://hexdocs.pm/elixir/Supervisor.html
|
||||
# for other strategies and supported options
|
||||
opts = [strategy: :one_for_one, name: ProxmoxAgent.Supervisor]
|
||||
Supervisor.start_link(children, opts)
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue