summaryrefslogtreecommitdiff
path: root/src/leap/eip/config.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-08-30 03:43:05 +0900
committerkali <kali@leap.se>2012-08-30 03:43:05 +0900
commitd69976caa5070403f81799c79be974241cff7f70 (patch)
tree6f2e7820a3eed1bf5f200b4043d7d89cb8b6a302 /src/leap/eip/config.py
parente6483d20a5500e86b5fa4e7da63f911641b7e9dd (diff)
fetcher moved to baseconfig + eipchecker using eipservice config.
Diffstat (limited to 'src/leap/eip/config.py')
-rw-r--r--src/leap/eip/config.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/leap/eip/config.py b/src/leap/eip/config.py
index a7b24f9b..b6c38a77 100644
--- a/src/leap/eip/config.py
+++ b/src/leap/eip/config.py
@@ -49,6 +49,20 @@ class EIPConfig(baseconfig.JSONLeapConfig):
slug = property(_get_slug, _set_slug)
+class EIPServiceConfig(baseconfig.JSONLeapConfig):
+ spec = eipspecs.eipservice_config_spec
+
+ def _get_slug(self):
+ return baseconfig.get_config_file(
+ 'eip-service.json',
+ folder=baseconfig.get_default_provider_path())
+
+ def _set_slug(self):
+ raise AttributeError("you cannot set slug")
+
+ slug = property(_get_slug, _set_slug)
+
+
def check_or_create_default_vpnconf(config):
"""
checks that a vpn config file