Sha256: 88ffe60048d1a918a6e2ac47a275f3de3e4e06d17f2714f66b47cba0d0c60839
Contents?: true
Size: 661 Bytes
Versions: 6
Compression:
Stored size: 661 Bytes
Contents
require "sfn" module Sfn module MonkeyPatch module Stack # Azure specific monkey patch implementations module Azure # @return [Hash] restructured azure template # @note Will return #template if name collision encountered within resources def sparkleish_template_azure new_template = template.to_smash resources = new_template.delete(:resources) resources.each do |resource| new_template.set(:resources, resource.delete(:name), resource) end resources.size == new_template[:resources].size ? new_template : template end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems