gitolite & gitosis support

This commit is contained in:
Dmitriy Zaporozhets 2011-12-04 01:44:59 +02:00
parent c03bc6e291
commit 9e089efe5a
14 changed files with 200 additions and 98 deletions

View file

@ -19,7 +19,7 @@ class Key < ActiveRecord::Base
end
def update_gitosis
Gitosis.new.configure do |c|
GitoProxy.system.new.configure do |c|
c.update_keys(identifier, key)
projects.each do |project|
@ -29,7 +29,7 @@ class Key < ActiveRecord::Base
end
def gitosis_delete_key
Gitosis.new.configure do |c|
GitoProxy.system.new.configure do |c|
c.delete_key(identifier)
projects.each do |project|