mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-03-15 09:14:48 +08:00
15 lines
339 B
Elixir
15 lines
339 B
Elixir
|
defmodule LiveBook.Config do
|
||
|
@moduledoc false
|
||
|
|
||
|
@doc """
|
||
|
Checks if the distribution mode is configured to use short names.
|
||
|
"""
|
||
|
@spec shortnames?() :: boolean()
|
||
|
def shortnames?() do
|
||
|
case Application.fetch_env!(:live_book, :node_name) do
|
||
|
{:shortnames, _name} -> true
|
||
|
{:longnames, _name} -> false
|
||
|
end
|
||
|
end
|
||
|
end
|