use Mix.Project.Config for some Application functions

This commit is contained in:
Luna 2019-02-01 14:11:23 -03:00
parent b0c4c082c4
commit cd6db6abe4
1 changed files with 2 additions and 2 deletions

View File

@ -6,9 +6,9 @@ defmodule Pleroma.Application do
use Application use Application
import Supervisor.Spec import Supervisor.Spec
@name "Pleroma" @name Mix.Project.config()[:name]
@version Mix.Project.config()[:version] @version Mix.Project.config()[:version]
@repository "https://git.pleroma.social/pleroma/pleroma" @repository Mix.Project.config()[:source_url]
def name, do: @name def name, do: @name
def version, do: @version def version, do: @version
def named_version(), do: @name <> " " <> @version def named_version(), do: @name <> " " <> @version