From cb7ec992413c5256aeeb84f90d8eab2811bb5a07 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Fri, 27 Oct 2023 12:03:23 -0400 Subject: [PATCH] Seed workflows from plugins' content/workflows --- lib/vmdb/plugins.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/vmdb/plugins.rb b/lib/vmdb/plugins.rb index b8004af92945..39cf60684500 100644 --- a/lib/vmdb/plugins.rb +++ b/lib/vmdb/plugins.rb @@ -71,6 +71,14 @@ def ansible_runner_content end end + def embedded_workflows_content + @embedded_workflows_content ||= begin + flat_map do |engine| + Dir.glob(engine.root.join("content", "workflows", "**", "*.asl")) + end + end + end + def automate_domains @automate_domains ||= begin require_relative 'plugins/automate_domain'