commit:     4250b143b1c54c9050727814d70beb23a556bda1
Author:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 29 01:32:14 2014 +0000
Commit:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
CommitDate: Fri Aug 15 21:42:42 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=4250b143

g_sorcery.py: Converts to plug-in module

---
 layman/overlays/modules/g_sorcery/__init__.py      | 25 ++++++++++++++++++++++
 .../overlays/{ => modules/g_sorcery}/g_sorcery.py  |  0
 2 files changed, 25 insertions(+)

diff --git a/layman/overlays/modules/g_sorcery/__init__.py 
b/layman/overlays/modules/g_sorcery/__init__.py
new file mode 100644
index 0000000..2b3caf3
--- /dev/null
+++ b/layman/overlays/modules/g_sorcery/__init__.py
@@ -0,0 +1,25 @@
+# Copyright 2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+'''
+G-Sorcery plug-in module for layman.
+'''
+
+module_spec = {
+    'name': 'g-sorcery',
+    'description': __doc__,
+    'provides':{
+        'g-sorcery-module': {
+            'name': 'g-sorcery',
+            'class': 'GSorceryOverlay',
+            'description': __doc__,
+            'functions': ['add', 'supported', 'sync'],
+            'func_desc': {
+                'add': 'Creates the base dir and clones a g_common repository',
+                'supported': 'Confirms if overlay type is supported',
+                'sync': 'Performs a sync of the repository',
+            },
+        }
+    }
+}
+

diff --git a/layman/overlays/g_sorcery.py 
b/layman/overlays/modules/g_sorcery/g_sorcery.py
similarity index 100%
rename from layman/overlays/g_sorcery.py
rename to layman/overlays/modules/g_sorcery/g_sorcery.py

Reply via email to