diff options
author | Devan Franchini <twitch153@gentoo.org> | 2014-07-28 21:36:11 -0400 |
---|---|---|
committer | Devan Franchini <twitch153@gentoo.org> | 2014-08-15 17:42:42 -0400 |
commit | 75d6ab3c1ac9dd71cd26b19133e50bff7031110d (patch) | |
tree | e54c7aa3f3472acb68bf0adf52dc6a8c2ddbfcdd | |
parent | g_sorcery.py: Converts to plug-in module (diff) | |
download | layman-75d6ab3c1ac9dd71cd26b19133e50bff7031110d.tar.gz layman-75d6ab3c1ac9dd71cd26b19133e50bff7031110d.tar.bz2 layman-75d6ab3c1ac9dd71cd26b19133e50bff7031110d.zip |
git.py: Converts to plug-in module
-rw-r--r-- | layman/overlays/modules/git/__init__.py | 26 | ||||
-rw-r--r-- | layman/overlays/modules/git/git.py (renamed from layman/overlays/git.py) | 0 |
2 files changed, 26 insertions, 0 deletions
diff --git a/layman/overlays/modules/git/__init__.py b/layman/overlays/modules/git/__init__.py new file mode 100644 index 0000000..3a2d932 --- /dev/null +++ b/layman/overlays/modules/git/__init__.py @@ -0,0 +1,26 @@ +# Copyright 2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +''' +Git plug-in module for layman. +''' + +module_spec = { + 'name': 'git', + 'description': __doc__, + 'provides':{ + 'git-module': { + 'name': 'git', + 'class': 'GitOverlay', + 'description': __doc__, + 'functions': ['add', 'supported', 'sync', 'update'], + 'func_desc': { + 'add': 'Performs a git clone on a repository', + 'supported': 'Confirms if overlay type is supported', + 'sync': 'Performs a git pull on the repository', + 'update': 'Updates a git overlay\'s source URL', + }, + } + } +} + diff --git a/layman/overlays/git.py b/layman/overlays/modules/git/git.py index f647139..f647139 100644 --- a/layman/overlays/git.py +++ b/layman/overlays/modules/git/git.py |