gitolite-manager 0.0.0

Manage gitolite's configuration files and SSH keys
LICENSE TYPE:
MIT/X Consortium License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Kyu Lee
HOMEPAGE:
github.com
CATEGORY:
ROOT \ Programming \ Version Control
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

requirements

#gitolite configuration #gitolite manager #gitolite #manager #configuration #Python

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update

Add your review!

SUBMIT