# Class Gitlab::Gitolite < Object

- lib/gitlab/backend/gitolite.rb

Namespace

- CLASS Gitlab::Gitolite::AccessDenied

Methods

C
  - config,
  - create_repository
E
  - enable_automerge
M
  - move_repository
R
  - remove_key,
  - remove_repository
S
  - set_key
U
  - update_repositories,
  - update_repository,
  - url_to_repo

Instance Public methods
config() Link

Source: show

    # File lib/gitlab/backend/gitolite.rb, line 7
    def config
      Gitlab::GitoliteConfig.new
    end

create_repository(project) Link
enable_automerge() Link

Source: show

    # File lib/gitlab/backend/gitolite.rb, line 44
    def enable_automerge
      config.admin_all_repo!
    end

move_repository(old_repo, project) Link

Source: show

    # 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) Link

Source: show

    # 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) Link

Source: show

    # File lib/gitlab/backend/gitolite.rb, line 36
    def remove_repository project
      config.destroy_project!(project)
    end

set_key(key_id, key_content, projects) Link

Source: show

    # 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) Link

Source: show

    # 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) Link
Also aliased as: create_repository

Source: show

    # File lib/gitlab/backend/gitolite.rb, line 25
    def update_repository project
      config.update_project!(project)
    end

url_to_repo(path) Link

Source: show

    # File lib/gitlab/backend/gitolite.rb, line 40
    def url_to_repo path
      Gitlab.config.gitolite.ssh_path_prefix + "#{path}.git"
    end