From f161dc0255a66de4277cbe3c5247ee093ff6c330 Mon Sep 17 00:00:00 2001 From: Cameron Dutro Date: Sun, 13 Aug 2023 14:04:23 -0700 Subject: [PATCH] Only configure single requested environment --- lib/kuby.rb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/kuby.rb b/lib/kuby.rb index cac9d64..cfee52c 100644 --- a/lib/kuby.rb +++ b/lib/kuby.rb @@ -55,13 +55,8 @@ def define(name, &block) @definition = Definition.new(name.to_s) @definition.instance_eval(&block) - @definition.environments.each do |_, env| - env.kubernetes.after_configuration - end - - @definition.environments.each do |_, env| - env.configured = true - end + @definition.environment.kubernetes.after_configuration + @definition.environment.configured = true @definition end