stelligent / mu

A full-stack DevOps on AWS framework
https://getmu.io
MIT License
974 stars 135 forks source link

Decompose upsert method to be less complex #331

Closed jeffb4 closed 6 years ago

jeffb4 commented 6 years ago

Breaks UpsertStack into several methods, and attempts to share logic between update/create (but has to use reflection for that which is meh)

jeffb4 commented 6 years ago

This ended up going further and refactored everything over a CCM of 15. It also fixes spots where error returns weren't being checked and other stuff revealed by gometalinter