commit:     dfe7e56f5351d64b61e66eefa3c6c0f9e2855516
Author:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 29 01:54:30 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=dfe7e56f

svn.py: Converts to plug-in module

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

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

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

Reply via email to