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

flatten nested plugin config items #27

Merged
merged 1 commit into from
Sep 7, 2018

Conversation

amireh
Copy link
Contributor

@amireh amireh commented Jul 18, 2018

this builds upon PR #12 in that it extends the support to also cover
plugin configuration that is deeply nested:

config = {
  a = {
    b = 1,
    c = 2
  }
}

# => {
#      "config.a.b" => 1,
#      "config.a.c" => 2
#    }

this builds upon PR kontena#12 in that it extends the support to also cover
plugin configuration that is deeply nested:

    config = {
      a = {
        b = 1,
        c = 2
      }
    }

    # => {
    #      "config.a.b" => 1,
    #      "config.a.c" => 2
    #    }
@kke kke requested a review from nevalla July 23, 2018 06:17
@amireh
Copy link
Contributor Author

amireh commented Jul 23, 2018

Oh and thanks for the library! 😀

Copy link
Contributor

@nevalla nevalla left a comment

Choose a reason for hiding this comment

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

Looking good! Thanks for contributing.

@nevalla nevalla merged commit 7ae8f3a into kontena:master Sep 7, 2018
nevalla added a commit that referenced this pull request Sep 7, 2018
nevalla added a commit that referenced this pull request Sep 7, 2018
* Fix tests after #27 and #28

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

Successfully merging this pull request may close these issues.

3 participants