First attempt at a post-receive hook that posts directly to Resque
This commit is contained in:
parent
1c9b9b7a3b
commit
bc0155fbaa
5 changed files with 30 additions and 14 deletions
|
@ -43,14 +43,14 @@ module Gitlabhq
|
|||
|
||||
def destroy_project(project)
|
||||
FileUtils.rm_rf(project.path_to_repo)
|
||||
|
||||
|
||||
ga_repo = ::Gitolite::GitoliteAdmin.new(File.join(@local_dir,'gitolite'))
|
||||
conf = ga_repo.config
|
||||
conf.rm_repo(project.path)
|
||||
ga_repo.save
|
||||
end
|
||||
|
||||
#update or create
|
||||
#update or create
|
||||
def update_keys(user, key)
|
||||
File.open(File.join(@local_dir, 'gitolite/keydir',"#{user}.pub"), 'w') {|f| f.write(key.gsub(/\n/,'')) }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue