Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support tags in template and stack config #23

Merged
merged 8 commits into from
Feb 16, 2017
Merged

Support tags in template and stack config #23

merged 8 commits into from
Feb 16, 2017

Conversation

herebebogans
Copy link
Contributor

As per #22 an initial implementation of tags support for stack creation.

@herebebogans
Copy link
Contributor Author

I've made stack_config INHERITABLE_PROPERTIES now override template_config .. I added a dependency on hashie for deep_merge as it's used in the specs in a similar way.

Copy link
Owner

@ampedandwired ampedandwired left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one minor nit, but otherwise looks great!

# Expand Tags to key, value pairs
if @stack_config[:tags]
@stack_config[:tags] = @stack_config[:tags].collect { |k, v| { key: k, value: v } }
end
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mutating @stack_config doesn't feel quite right here. Creates up side effects, for example what if this method happened to be called twice? Maybe assign the result of the "select" on the next line below to a temporary var, and expand the tags on that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK - Will do.

@herebebogans
Copy link
Contributor Author

Updated!

@ampedandwired ampedandwired merged commit 8e4584d into ampedandwired:master Feb 16, 2017
@ampedandwired
Copy link
Owner

Released as 1.6.0

@herebebogans
Copy link
Contributor Author

Sorry - pry as a development dependency slipped in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants