Commit d6b2b4f06952625da670735724e8c14ac3d7b9c5
1 parent
5d88cdd9
Exists in
master
and in
4 other branches
fixed configure call within gitolite
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
lib/gitlab/backend/gitolite.rb
@@ -8,21 +8,21 @@ module Gitlab | @@ -8,21 +8,21 @@ module Gitlab | ||
8 | class AccessDenied < StandardError; end | 8 | class AccessDenied < StandardError; end |
9 | 9 | ||
10 | def set_key key_id, key_content, projects | 10 | def set_key key_id, key_content, projects |
11 | - self.configure do |c| | 11 | + configure do |c| |
12 | c.update_keys(key_id, key_content) | 12 | c.update_keys(key_id, key_content) |
13 | c.update_project(project.path, projects) | 13 | c.update_project(project.path, projects) |
14 | end | 14 | end |
15 | end | 15 | end |
16 | 16 | ||
17 | def remove_key key_id, projects | 17 | def remove_key key_id, projects |
18 | - self.configure do |c| | 18 | + configure do |c| |
19 | c.delete_key(key_id) | 19 | c.delete_key(key_id) |
20 | c.update_project(project.path, projects) | 20 | c.update_project(project.path, projects) |
21 | end | 21 | end |
22 | end | 22 | end |
23 | 23 | ||
24 | def update_repository project | 24 | def update_repository project |
25 | - self.configure do |c| | 25 | + configure do |c| |
26 | c.update_project(project.path, project) | 26 | c.update_project(project.path, project) |
27 | end | 27 | end |
28 | end | 28 | end |
@@ -30,7 +30,7 @@ module Gitlab | @@ -30,7 +30,7 @@ module Gitlab | ||
30 | alias_method :create_repository, :update_repository | 30 | alias_method :create_repository, :update_repository |
31 | 31 | ||
32 | def remove_repository project | 32 | def remove_repository project |
33 | - self.configure do |c| | 33 | + configure do |c| |
34 | c.destroy_project(project) | 34 | c.destroy_project(project) |
35 | end | 35 | end |
36 | end | 36 | end |
@@ -45,7 +45,7 @@ module Gitlab | @@ -45,7 +45,7 @@ module Gitlab | ||
45 | end | 45 | end |
46 | 46 | ||
47 | def enable_automerge | 47 | def enable_automerge |
48 | - self.configure do |git| | 48 | + configure do |git| |
49 | git.admin_all_repo | 49 | git.admin_all_repo |
50 | end | 50 | end |
51 | end | 51 | end |