lib/jets/aws_services/stack_status.rb in jets-1.1.5 vs lib/jets/aws_services/stack_status.rb in jets-1.2.0
- old
+ new
@@ -46,7 +46,14 @@
exit 0
else
true
end
end
+
+ # Lookup output value.
+ # Used in Jets::Resource::ApiGateway::RestApi::* andJets::Commands::Url
+ def lookup(outputs, key)
+ out = outputs.find { |o| o.output_key == key }
+ out&.output_value
+ end
end
end
\ No newline at end of file