Packages

Mix-first deployment tool for bare-metal Elixir releases over SSH. An Elixir port of Kamal using native releases, Caddy, and Elixir configuration.

Current section

Files

Jump to
xamal lib mix tasks xamal init.ex
Raw

lib/mix/tasks/xamal/init.ex

defmodule Mix.Tasks.Xamal.Init do
@moduledoc """
Generates Xamal configuration, secrets, and sample hooks.
"""
use Mix.Task
@shortdoc "Generates Xamal configuration"
@impl true
def run(args) do
{opts, _args, _invalid} = OptionParser.parse(args, strict: [yes: :boolean, dry_run: :boolean])
Xamal.Init.run(
yes: Keyword.get(opts, :yes, true),
dry_run: Keyword.get(opts, :dry_run, false)
)
end
end