Sha256: 17fa7b6697bd34e662cee0bfe03e3e33391c82c1311f122a6558286327dc73af
Contents?: true
Size: 756 Bytes
Versions: 6
Compression:
Stored size: 756 Bytes
Contents
class Lono::Cfn::Plan::Changeset class Outputs < Base # Not enough info to show value changes. Show whats possible: Added and Removed keys def changes old_keys = stack.outputs.map { |output| output[:output_key] } new_keys = template_output.outputs.map { |k,_| k } added_keys = new_keys - old_keys removed_keys = old_keys - new_keys return if added_keys.empty? && removed_keys.empty? logger.info "Changes to outputs" log = Proc.new do |k| logger.info " #{k}" end unless added_keys.empty? logger.info "Added:" added_keys.each(&log) end unless removed_keys.empty? logger.info "Removed:" removed_keys.each(&log) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems