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