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

Per project parameter resolvers #165

Open
stevehodgkiss opened this issue Mar 22, 2017 · 1 comment
Open

Per project parameter resolvers #165

stevehodgkiss opened this issue Mar 22, 2017 · 1 comment

Comments

@stevehodgkiss
Copy link
Contributor

stevehodgkiss commented Mar 22, 2017

StackMaster doesn't contain many parameter resolvers. It would be useful if there were a way to quickly build them inside of a project before deciding whether to submit a PR to StackMaster with the resolver.

Proposal:

Add a new directory named parameters_resolvers. All ruby files in that directory would be loaded. A resolver could be defined like this:

StackMaster.resolver(:rds_cluster) do # defines a class and hooks things up under the hood
  def call(value)
    value.reverse
  end
end
@gstamp
Copy link
Contributor

gstamp commented Mar 22, 2017

Nice idea.

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

No branches or pull requests

3 participants