Added receipts list

This commit is contained in:
alexey
2025-02-20 23:56:47 +03:00
parent 895fb918b5
commit 0e894fafd6
7 changed files with 101 additions and 4 deletions

View File

@@ -138,4 +138,14 @@ class GitRepo
info[:error] = @error
info
end
def delete_repo(reponame)
git_path = File.expand_path(reponame + ".git", @path)
File.open("locks/gitcreate", "r") do |f|
f.flock(File::LOCK_EX)
if File.exist?(git_path)
FileUtils.rm_rf(git_path, secure: true)
end
end
end
end