commit: e328e21a39c92630a1314cdb0ab0252e565fd219
Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 29 01:49:26 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=e328e21a
rsync.py: Converts to plug-in module
---
layman/overlays/modules/rsync/__init__.py | 25 +++++++++++++++++++++++++
layman/overlays/{ => modules/rsync}/rsync.py | 0
2 files changed, 25 insertions(+)
diff --git a/layman/overlays/modules/rsync/__init__.py
b/layman/overlays/modules/rsync/__init__.py
new file mode 100644
index 0000000..862f647
--- /dev/null
+++ b/layman/overlays/modules/rsync/__init__.py
@@ -0,0 +1,25 @@
+# Copyright 2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+'''
+Rsync plug-in module for layman.
+'''
+
+module_spec = {
+ 'name': 'rsync',
+ 'description': __doc__,
+ 'provides':{
+ 'rsync-module': {
+ 'name': 'rsync',
+ 'class': 'RsyncOverlay',
+ 'description': __doc__,
+ 'functions': ['add', 'supported', 'sync'],
+ 'func_desc': {
+ 'add': 'Creates the base dir and syncs a rsync repository',
+ 'supported': 'Confirms if overlay type is supported',
+ 'sync': 'Performs a rsync sync',
+ },
+ }
+ }
+}
+
diff --git a/layman/overlays/rsync.py b/layman/overlays/modules/rsync/rsync.py
similarity index 100%
rename from layman/overlays/rsync.py
rename to layman/overlays/modules/rsync/rsync.py