hunter/lib/hunter/config.ex

22 lines
442 B
Elixir
Raw Normal View History

defmodule Hunter.Config do
2019-03-19 13:18:34 -04:00
@moduledoc """
Hunter configuration.
"""
def hunter_api do
2019-03-19 13:18:34 -04:00
Application.get_env(:hunter, :hunter_api, Hunter.Api.HTTPClient)
end
def api_base_url do
2019-03-19 13:18:34 -04:00
Application.get_env(:hunter, :api_base_url, "https://mastodon.social")
end
def home do
Path.expand(System.get_env("HUNTER_HOME") || "~/.hunter")
end
2019-03-19 14:16:09 -04:00
def http_options do
Application.get_env(:hunter, :http_options, [])
end
end