# File lib/gitlab/backend/gitolite.rb, line 7 def config Gitlab::GitoliteConfig.new end
# File lib/gitlab/backend/gitolite.rb, line 37 def enable_automerge config.admin_all_repo! end
# File lib/gitlab/backend/gitolite.rb, line 18 def remove_key key_id, projects config.apply do |config| config.rm_key(key_id) config.update_projects(projects) end end
# File lib/gitlab/backend/gitolite.rb, line 29 def remove_repository project config.destroy_project!(project) end
# File lib/gitlab/backend/gitolite.rb, line 11 def set_key key_id, key_content, projects config.apply do |config| config.write_key(key_id, key_content) config.update_projects(projects) end end
# File lib/gitlab/backend/gitolite.rb, line 25 def update_repository project config.update_project!(project.path, project) end
# File lib/gitlab/backend/gitolite.rb, line 33 def url_to_repo path Gitlab.config.ssh_path + "#{path}.git" end