surgeventures/surgex

View on GitHub
lib/surgex/application.ex

Summary

Maintainability
Test Coverage
defmodule Surgex.Application do
  @moduledoc """
  Main Surgex OTP application that calls patches configured for running and hibernates itself.
  """

  use Application
  use GenServer
  require Logger

  alias Surgex.Sentry

  @doc false
  def start(_type, _args) do
    GenServer.start_link(__MODULE__, nil)
  end

  def init(_) do
    Sentry.init()

    {:ok, nil, :hibernate}
  end
end