Namespace
Methods
C
E
M
R
S
U
Instance Public methods
config()
# File lib/gitlab/backend/gitolite.rb, line 7
def config
  Gitlab::GitoliteConfig.new
end
create_repository(project)
enable_automerge()
# File lib/gitlab/backend/gitolite.rb, line 44
def enable_automerge
  config.admin_all_repo!
end
move_repository(old_repo, project)
# File lib/gitlab/backend/gitolite.rb, line 29
def move_repository(old_repo, project)
  config.apply do |config|
    config.clean_repo(old_repo)
    config.update_project(project)
  end
end
remove_key(key_id, projects)
# 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)
# File lib/gitlab/backend/gitolite.rb, line 36
def remove_repository project
  config.destroy_project!(project)
end
set_key(key_id, key_content, projects)
# 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_repositories(projects)
# File lib/gitlab/backend/gitolite.rb, line 48
def update_repositories projects
  config.apply do |config|
    config.update_projects(projects)
  end
end
update_repository(project)
Also aliased as: create_repository
# File lib/gitlab/backend/gitolite.rb, line 25
def update_repository project
  config.update_project!(project)
end
url_to_repo(path)
# File lib/gitlab/backend/gitolite.rb, line 40
def url_to_repo path
  Gitlab.config.gitolite.ssh_path_prefix + "#{path}.git"
end