gitolite-manager 0.0.0

Manage gitolite's configuration files and SSH keys
gitolite-manager is a Python module to manage gitolite config and SSH keys.

Installation

 sudo pip install gitolite-manager

or alternatively (you really should be using pip though):

 sudo easy_install gitolite-manager

From source:

 sudo python setup.py install

Getting Started

Prepare gitolite

Add the following line to gitolite configuration file (./gitolite-admin/conf/gitolite.conf)

include "user_repos.conf"

By default, it'll use ./gitolite-admin as gitolite directory.

Add/remove repositories

>>> import gitolite_manager
>>> gitolite = gitolite_manager.Gitolite()
>>> gitolite.addRepo('username', 'reponame')
True
>>> gitolite.getRepos()
{'username/reponame': [('RW+', 'username')]}
>>> gitolite.rmRepo('username', 'reponame')
True
>>> gitolite.getRepos()
{}

Add/remove ssh keys

>>> import gitolite_manager
>>> gitolite = gitolite_manager.Gitolite()
>>> gitolite.addSSHKey('username', 'keyname', 'ssh key content')
True
>>> gitolite.getSSHKeys()
{'username': ['keyname']}
>>> gitolite.rmSSHKey('username','keyname')
True
>>> gitolite.getSSHKeys()
{}

last updated on:
September 4th, 2012, 14:49 GMT
price:
FREE!
developed by:
Kyu Lee
homepage:
github.com
license type:
MIT/X Consortium License 
category:
ROOT \ Programming \ Version Control
gitolite-manager
Download Button

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!

Add your review!

SUBMIT