commit: 23a73e67ab6a9be9ce9c8f5a4b814bc84b8fbca9
Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 29 00:40:24 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=23a73e67
cvs.py: Converts to plug-in module
---
layman/overlays/modules/cvs/__init__.py | 26 ++++++++++++++++++++++++++
layman/overlays/{ => modules/cvs}/cvs.py | 0
2 files changed, 26 insertions(+)
diff --git a/layman/overlays/modules/cvs/__init__.py
b/layman/overlays/modules/cvs/__init__.py
new file mode 100644
index 0000000..f085919
--- /dev/null
+++ b/layman/overlays/modules/cvs/__init__.py
@@ -0,0 +1,26 @@
+# Copyright 2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+'''
+CVS plug-in module for layman.
+'''
+
+module_spec = {
+ 'name': 'cvs',
+ 'description': __doc__,
+ 'provides':{
+ 'cvs-module': {
+ 'name': 'cvs',
+ 'class': 'CvsOverlay',
+ 'description': __doc__,
+ 'functions': ['add', 'supported', 'sync', 'update'],
+ 'func_desc': {
+ 'add': 'Performs a cvs checkout on a repository',
+ 'supported': 'Confirms if overlay type is supported',
+ 'sync': 'Performs a cvs update on the repository',
+ 'update': 'Updates a cvs overlay\'s source URL',
+ },
+ }
+ }
+}
+
diff --git a/layman/overlays/cvs.py b/layman/overlays/modules/cvs/cvs.py
similarity index 100%
rename from layman/overlays/cvs.py
rename to layman/overlays/modules/cvs/cvs.py