commit: de2112e881a1c58de5d120b7cc42c3351381a911
Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 15 20:24:27 2014 +0000
Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
CommitDate: Fri Aug 15 22:20:49 2014 +0000
URL:
http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=de2112e8
makeconf.py: Converts to config plug-in module
---
layman/config_modules/makeconf/__init__.py | 29 ++++++++++++++++++++++++
layman/{ => config_modules/makeconf}/makeconf.py | 0
2 files changed, 29 insertions(+)
diff --git a/layman/config_modules/makeconf/__init__.py
b/layman/config_modules/makeconf/__init__.py
new file mode 100644
index 0000000..c385960
--- /dev/null
+++ b/layman/config_modules/makeconf/__init__.py
@@ -0,0 +1,29 @@
+# Copyright 2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+'''
+Makeconf plug-in module for layman.
+'''
+
+module_spec = {
+ 'name': 'makeconf',
+ 'description': __doc__,
+ 'provides':{
+ 'makeconf-module': {
+ 'name': 'makeconf',
+ 'class': 'ConfigHandler',
+ 'description': __doc__,
+ 'functions': ['add', 'delete', 'disable', 'enable', 'read',
+ 'update', 'write'],
+ 'func_desc': {
+ 'add': 'Adds overlay dir string to config',
+ 'delete': 'Removes overlay dir string from config',
+ 'disable': 'Moves overlay dir string to DISBALED var',
+ 'enable': 'Moves overlay dir string to ENABLED var',
+ 'read': 'Reads the list of registered overlays from config',
+ 'update': 'Nothing, stub function',
+ 'write': 'Writes the list of registered overlay to config',
+ },
+ }
+ }
+}
diff --git a/layman/makeconf.py b/layman/config_modules/makeconf/makeconf.py
similarity index 100%
rename from layman/makeconf.py
rename to layman/config_modules/makeconf/makeconf.py