Packages

Provides standardized support for obtaining environment, version, and heartbeat information in JSON format

Current section

Files

Jump to
ex_ops lib host_info.ex
Raw

lib/host_info.ex

defmodule ExOps.HostInfo do
@moduledoc """
Provides information about current host
"""
@spec hostname() :: String.t()
def hostname, do: host_name()
defp host_name do
to_string(:net_adm.localhost)
end
end