Added clean mock cache

This commit is contained in:
Alexey Berezhok
2025-12-04 23:18:15 +03:00
parent f2136260c9
commit 482a586b6e
5 changed files with 43 additions and 0 deletions

8
app.rb
View File

@@ -1438,6 +1438,14 @@ get "/sanitize" do
erb :sanitize
end
get "/buildsclean" do
@page_name = "Очистка окружений сборок"
mock_cache_path = "/var/cache/mock/"
@list_cleaned = get_dirs_in_mock_cache(mock_cache_path)
MockManager.clean_mock
erb :buildsclean
end
not_found do
status 404
@page_name = "Кто-то потерялся"