commit: 34fd5c98fbd9674b6197327cca5c1ef5b26854d6
Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 15 20:28:33 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=34fd5c98
reposconf.py: Converts to config plug-in module
---
layman/config_modules/reposconf/__init__.py | 29 ++++++++++++++++++++++
layman/{ => config_modules/reposconf}/reposconf.py | 0
2 files changed, 29 insertions(+)
diff --git a/layman/config_modules/reposconf/__init__.py
b/layman/config_modules/reposconf/__init__.py
new file mode 100644
index 0000000..f8f69bc
--- /dev/null
+++ b/layman/config_modules/reposconf/__init__.py
@@ -0,0 +1,29 @@
+# Copyright 2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+'''
+Reposconf plug-in module for layman.
+'''
+
+module_spec = {
+ 'name': 'reposconf',
+ 'description': __doc__,
+ 'provides':{
+ 'reposconf-module': {
+ 'name': 'reposconf',
+ 'class': 'ConfigHandler',
+ 'description': __doc__,
+ 'functions': ['add', 'delete', 'disable', 'enable', 'read',
+ 'update', 'write'],
+ 'func_desc': {
+ 'add': 'Adds overlay information to config',
+ 'delete': 'Removes overlay information from config',
+ 'disable': 'Comments out specific overlay config entry',
+ 'enable': 'Uncomments specific overlay config entry',
+ 'read': 'Reads the config file',
+ 'update': 'Updates the source URL for the specified overlay',
+ 'write': 'Writes the overlay information to the config',
+ },
+ }
+ }
+}
diff --git a/layman/reposconf.py b/layman/config_modules/reposconf/reposconf.py
similarity index 100%
rename from layman/reposconf.py
rename to layman/config_modules/reposconf/reposconf.py