From 7d22eab2a2ce248056ff842213104d9b8fc7cd9e Mon Sep 17 00:00:00 2001 From: HAHWUL Date: Tue, 25 Jun 2024 23:04:05 +0900 Subject: [PATCH] Add workflows --- lib/caido/helpers/workflow.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 lib/caido/helpers/workflow.rb diff --git a/lib/caido/helpers/workflow.rb b/lib/caido/helpers/workflow.rb new file mode 100644 index 0000000..1bfc178 --- /dev/null +++ b/lib/caido/helpers/workflow.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +module Caido + # Instance class + class Instance + def workflows + query('query{ + workflows{ + id + name + kind + enabled + global + definition + createdAt + updatedAt + } + }')['workflows'] + end + end +end