Packages

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

Current section

Files

Jump to
ex_ops lib version.ex
Raw

lib/version.ex

defmodule ExOps.Version do
@moduledoc"""
Provides information about curent and previous deployments
"""
defstruct [:deployment, :host]
@type t :: %__MODULE__{deployment: map(), host: String.t()}
alias ExOps.{BuildDetails, HostInfo}
def details do
%__MODULE__{
deployment: BuildDetails.full(),
host: HostInfo.hostname(),
}
end
end