Added projects. Part 4
This commit is contained in:
@@ -37,6 +37,15 @@ class ProjectsActions
|
||||
prj
|
||||
end
|
||||
|
||||
def get_project(id)
|
||||
prj = nil
|
||||
File.open("locks/prjcreate", "r") do |f|
|
||||
f.flock(File::LOCK_SH)
|
||||
prj = @db.proj(id.to_i)
|
||||
end
|
||||
prj
|
||||
end
|
||||
|
||||
def create_project(name, description, configuration)
|
||||
@error = nil
|
||||
ret_val = 0
|
||||
@@ -77,4 +86,8 @@ class ProjectsActions
|
||||
end
|
||||
ret_val
|
||||
end
|
||||
|
||||
def get_project_gits(id)
|
||||
@db.get_gits_for_projects(id)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user