defmodule PrymnWeb.ServerLive.Show do use PrymnWeb, :live_view require Logger alias Prymn.{Agents, Servers} @impl true def mount(_params, _session, socket) do # TODO: A more lightweight call instead of listing all data? servers = Servers.list_servers() {:ok, assign(socket, :servers, servers)} end @impl true def render(assigns) do ~H"""
Background task in progress: <%= name %>
<%= task.progress %> complete
Connect to your server using root credentials and execute the following command:
#
<%= @registration_command %>
Updates: <%= 0 %> pending updates.
<%= output %>