summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRodrigo Coutinho <digao@osfeio.com>2017-12-29 18:32:36 -0200
committerGitHub <noreply@github.com>2017-12-29 18:32:36 -0200
commitf75b83f1713a7c7aacfcdd8a4134a9113981d136 (patch)
tree6e4ca433c2665b002f0c885dde82bdab16556429 /config
parentbump version (diff)
Fix test suite (#11)
* Fix broken specs and update exvcr * Provide default configuration to run tests * Show nameservers in zone
Diffstat (limited to 'config')
-rw-r--r--config/config.exs28
-rw-r--r--config/dev.exs1
-rw-r--r--config/prod.exs1
-rw-r--r--config/test.exs4
4 files changed, 7 insertions, 27 deletions
diff --git a/config/config.exs b/config/config.exs
index 4f2b23f..8eff0b9 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -1,30 +1,4 @@
-# This file is responsible for configuring your application
-# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
-# This configuration is loaded before any dependency and is restricted
-# to this project. If another project depends on this project, this
-# file won't be loaded nor affect the parent project. For this reason,
-# if you want to provide default values for your application for
-# 3rd-party users, it should be done in your "mix.exs" file.
+import_config "#{Mix.env}.exs"
-# You can configure for your application as:
-#
-# config :powerdnsex, key: :value
-#
-# And access this configuration in your application as:
-#
-# Application.get_env(:powerdnsex, :key)
-#
-# Or configure a 3rd-party app:
-#
-# config :logger, level: :info
-#
-
-# It is also possible to import configuration files, relative to this
-# directory. For example, you can emulate configuration per environment
-# by uncommenting the line below and defining dev.exs, test.exs and such.
-# Configuration from the imported file will override the ones defined
-# here (which is why it is important to import them last).
-#
-# import_config "#{Mix.env}.exs"
diff --git a/config/dev.exs b/config/dev.exs
new file mode 100644
index 0000000..d2d855e
--- /dev/null
+++ b/config/dev.exs
@@ -0,0 +1 @@
+use Mix.Config
diff --git a/config/prod.exs b/config/prod.exs
new file mode 100644
index 0000000..d2d855e
--- /dev/null
+++ b/config/prod.exs
@@ -0,0 +1 @@
+use Mix.Config
diff --git a/config/test.exs b/config/test.exs
new file mode 100644
index 0000000..eedc0c7
--- /dev/null
+++ b/config/test.exs
@@ -0,0 +1,4 @@
+use Mix.Config
+
+config :powerdnsex, url: "https://powerdns.example.com"
+config :powerdnsex, token: "example"