Packages

Starts a SSH daemon that provides a remote IEx shell.

Current section

Files

Jump to
iex_ssh_shell lib nerves_ssh_shell application.ex
Raw

lib/nerves_ssh_shell/application.ex

defmodule IExSshShell.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
# List all child processes to be supervised
children = [
# Starts a worker by calling: IExSshShell.Worker.start_link(arg)
{IExSshShell.IEx.Daemon, [restart: :transient]},
]
# See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: IExSshShell.Supervisor]
Supervisor.start_link(children, opts)
end
end