From 09e8e44180e0881ed860332c85e349e1ea7987e4 Mon Sep 17 00:00:00 2001 From: HAHWUL Date: Sat, 29 Jun 2024 00:27:09 +0900 Subject: [PATCH] chore: Rename project.rb to workspace.rb and add backups method --- lib/caido/helpers/{project.rb => workspace.rb} | 15 +++++++++++++++ 1 file changed, 15 insertions(+) rename lib/caido/helpers/{project.rb => workspace.rb} (52%) diff --git a/lib/caido/helpers/project.rb b/lib/caido/helpers/workspace.rb similarity index 52% rename from lib/caido/helpers/project.rb rename to lib/caido/helpers/workspace.rb index 2f5726f..7549acf 100644 --- a/lib/caido/helpers/project.rb +++ b/lib/caido/helpers/workspace.rb @@ -13,5 +13,20 @@ def projects } }')['projects'] end + + def backups + query('query{ + backups{ + id + name + status + updatedAt + createdAt + path + size + downloadUri + } + }')['backups'] + end end end