Added receipts list
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user