fixtures added
This commit is contained in:
parent
a41d57691d
commit
03e51c3058
5 changed files with 58 additions and 17 deletions
|
@ -1,3 +1,5 @@
|
|||
require File.join(Rails.root, "lib", "gitlabhq", "git_host")
|
||||
|
||||
class Repository
|
||||
attr_accessor :project
|
||||
|
||||
|
@ -34,13 +36,13 @@ class Repository
|
|||
end
|
||||
|
||||
def update_gitosis_project
|
||||
GitProxy.system.new.configure do |c|
|
||||
Gitlabhq::GitHost.system.new.configure do |c|
|
||||
c.update_project(path, project.gitosis_writers)
|
||||
end
|
||||
end
|
||||
|
||||
def destroy_gitosis_project
|
||||
GitProxy.system.new.configure do |c|
|
||||
Gitlabhq::GitHost.system.new.configure do |c|
|
||||
c.destroy_project(@project)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue