class Gitlab::Gitolite

Public Instance Methods

config() click to toggle source
# File lib/gitlab/backend/gitolite.rb, line 7
def config
  Gitlab::GitoliteConfig.new
end
create_repository(project) click to toggle source
Alias for: update_repository
enable_automerge() click to toggle source
# File lib/gitlab/backend/gitolite.rb, line 37
def enable_automerge
  config.admin_all_repo!
end
remove_key(key_id, projects) click to toggle source
# 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
remove_repository(project) click to toggle source
# File lib/gitlab/backend/gitolite.rb, line 29
def remove_repository project
  config.destroy_project!(project)
end
set_key(key_id, key_content, projects) click to toggle source
# 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
update_repository(project) click to toggle source
# File lib/gitlab/backend/gitolite.rb, line 25
def update_repository project
  config.update_project!(project.path, project)
end
Also aliased as: create_repository
url_to_repo(path) click to toggle source
# File lib/gitlab/backend/gitolite.rb, line 33
def url_to_repo path
  Gitlab.config.ssh_path + "#{path}.git"
end