commit: 7fe9df5d0d668734d27cb3854f99d5c10aad8939
Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 29 00:51:20 2014 +0000
Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
CommitDate: Fri Aug 15 21:42:41 2014 +0000
URL:
http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=7fe9df5d
g_common.py: Converts to plug-in module
---
layman/overlays/modules/g_common/__init__.py | 25 ++++++++++++++++++++++
layman/overlays/{ => modules/g_common}/g_common.py | 0
2 files changed, 25 insertions(+)
diff --git a/layman/overlays/modules/g_common/__init__.py
b/layman/overlays/modules/g_common/__init__.py
new file mode 100644
index 0000000..d8ea23d
--- /dev/null
+++ b/layman/overlays/modules/g_common/__init__.py
@@ -0,0 +1,25 @@
+# Copyright 2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+'''
+G-Common plug-in module for layman.
+'''
+
+module_spec = {
+ 'name': 'g-common',
+ 'description': __doc__,
+ 'provides':{
+ 'g-common-module': {
+ 'name': 'g-common',
+ 'class': 'GCommonOverlay',
+ '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_common.py
b/layman/overlays/modules/g_common/g_common.py
similarity index 100%
rename from layman/overlays/g_common.py
rename to layman/overlays/modules/g_common/g_common.py