commit:     754084ab0925bbc924b691119d7ebada0f92f048
Author:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 29 01:44:50 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=754084ab

mercurial.py: Converts to plug-in module

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

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

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

Reply via email to