commit:     75d6ab3c1ac9dd71cd26b19133e50bff7031110d
Author:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 29 01:36:11 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=75d6ab3c

git.py: Converts to plug-in module

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

diff --git a/layman/overlays/modules/git/__init__.py 
b/layman/overlays/modules/git/__init__.py
new file mode 100644
index 0000000..3a2d932
--- /dev/null
+++ b/layman/overlays/modules/git/__init__.py
@@ -0,0 +1,26 @@
+# Copyright 2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+'''
+Git plug-in module for layman.
+'''
+
+module_spec = {
+    'name': 'git',
+    'description': __doc__,
+    'provides':{
+        'git-module': {
+            'name': 'git',
+            'class': 'GitOverlay',
+            'description': __doc__,
+            'functions': ['add', 'supported', 'sync', 'update'],
+            'func_desc': {
+                'add': 'Performs a git clone on a repository',
+                'supported': 'Confirms if overlay type is supported',
+                'sync': 'Performs a git pull on the repository',
+                'update': 'Updates a git overlay\'s source URL',
+            },
+        }
+    }
+}
+

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

Reply via email to