Added projects. Part 4

This commit is contained in:
alexey
2025-02-26 23:55:39 +03:00
parent 8d10b21963
commit 34a69e1a1d
103 changed files with 150 additions and 10 deletions

View File

@@ -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