couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [6/7] couchdb-couch-epi git commit: Use rel/apps/couch_epi.config for configuring EPI
Date Thu, 01 Oct 2015 15:03:55 GMT
Use rel/apps/couch_epi.config for configuring EPI


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/commit/be34447c
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/tree/be34447c
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/diff/be34447c

Branch: refs/heads/master
Commit: be34447c5ba0e474d851858b5346b33f864788e6
Parents: 66a854b
Author: ILYA Khlopotov <iilyak@ca.ibm.com>
Authored: Wed Sep 30 09:04:54 2015 -0700
Committer: ILYA Khlopotov <iilyak@ca.ibm.com>
Committed: Thu Oct 1 07:29:39 2015 -0700

----------------------------------------------------------------------
 src/couch_epi.app.src        | 24 ------------------------
 src/couch_epi.app.src.script | 27 +++++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 24 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/blob/be34447c/src/couch_epi.app.src
----------------------------------------------------------------------
diff --git a/src/couch_epi.app.src b/src/couch_epi.app.src
deleted file mode 100644
index 3c21489..0000000
--- a/src/couch_epi.app.src
+++ /dev/null
@@ -1,24 +0,0 @@
-% Licensed under the Apache License, Version 2.0 (the "License"); you may not
-% use this file except in compliance with the License. You may obtain a copy of
-% the License at
-%
-% http://www.apache.org/licenses/LICENSE-2.0
-%
-% Unless required by applicable law or agreed to in writing, software
-% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-% License for the specific language governing permissions and limitations under
-% the License.
-
-{application, couch_epi,
- [
-  {description, "extensible plugin interface"},
-  {vsn, git},
-  {registered, [couch_epi_sup, couch_epi_server]},
-  {applications, [
-                  kernel,
-                  stdlib
-                 ]},
-  {mod, { couch_epi_app, []}},
-  {env, []}
- ]}.

http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/blob/be34447c/src/couch_epi.app.src.script
----------------------------------------------------------------------
diff --git a/src/couch_epi.app.src.script b/src/couch_epi.app.src.script
new file mode 100644
index 0000000..e313eaf
--- /dev/null
+++ b/src/couch_epi.app.src.script
@@ -0,0 +1,27 @@
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
+ConfigFile = filename:join([os:getenv("COUCHDB_APPS_CONFIG_DIR"), "couch_epi.config"]).
+{ok, AppConfig} = file:consult(ConfigFile).
+
+{application, couch_epi,
+ [
+  {description, "extensible plugin interface"},
+  {vsn, git},
+  {registered, [couch_epi_sup, couch_epi_server]},
+  {applications, [
+                  kernel,
+                  stdlib
+                 ]},
+  {mod, { couch_epi_app, []}},
+  {env, AppConfig}
+ ]}.


Mime
View raw message