35 lines
807 B
Elixir
35 lines
807 B
Elixir
defmodule Farmbot.Project do
|
|
@moduledoc "Farmbot project config"
|
|
|
|
@version Mix.Project.config[:version]
|
|
@target Mix.Project.config[:target]
|
|
@commit Mix.Project.config[:commit]
|
|
@branch Mix.Project.config[:branch]
|
|
@arduino_commit Mix.Project.config[:arduino_commit]
|
|
@env Mix.env()
|
|
|
|
@doc "*#{@version}*"
|
|
@compile {:inline, version: 0}
|
|
def version, do: @version
|
|
|
|
@doc "*#{@commit}*"
|
|
@compile {:inline, commit: 0}
|
|
def commit, do: @commit
|
|
|
|
@doc "*#{@branch}*"
|
|
@compile {:inline, branch: 0}
|
|
def branch, do: @branch
|
|
|
|
@doc "*#{@arduino_commit}*"
|
|
@compile {:inline, arduino_commit: 0}
|
|
def arduino_commit, do: @arduino_commit
|
|
|
|
@doc "*#{@target}*"
|
|
@compile {:inline, target: 0}
|
|
def target, do: @target
|
|
|
|
@doc "*#{@env}*"
|
|
@compile {:inline, env: 0}
|
|
def env, do: @env
|
|
end
|