Merge branch 'master' of github.com:gitlabhq/gitlabhq

This commit is contained in:
Dmitriy Zaporozhets 2011-12-20 19:36:23 +02:00
commit 2f7b671619
2 changed files with 30 additions and 8 deletions

View file

@ -21,20 +21,14 @@ class Key < ActiveRecord::Base
def update_repository
Gitlabhq::GitHost.system.new.configure do |c|
c.update_keys(identifier, key)
projects.each do |project|
c.update_project(project.path, project)
end
c.update_projects(projects)
end
end
def repository_delete_key
Gitlabhq::GitHost.system.new.configure do |c|
c.delete_key(identifier)
projects.each do |project|
c.update_project(project.path, project)
end
c.update_projects(projects)
end
end