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

Remove the "Core" DSL for Chef-16 #9411

Merged
merged 2 commits into from Feb 28, 2020
Merged

Conversation

lamont-granquist
Copy link
Contributor

This lets us avoid using declare_resource in old style core resources.

As everything gets converted over to custom resources this is going away
anyway.

We haven't seen any issues from using the recipe DSL in custom resources
in core.

Clearly this is potentially breaking since any references to
Chef::DSL::Core need to be changed to Chef::DSL::Recipe (although I'm
not sure who would have done that other than maybe us somewhere, I had
a note in there that nobody should probably touch the Core DSL).

This greatly simplifies the major DSLs down to two:

Recipe DSL - things that only make sense in a context where there is a resource_collection
Universal DSL - things that apply everywhere

Signed-off-by: Lamont Granquist lamont@scriptkiddie.org

This lets us avoid using declare_resource in old style core resources.

As everything gets converted over to custom resources this is going away
anyway.

We haven't seen any issues from using the recipe DSL in custom resources
in core.

Clearly this is potentially breaking since any references to
Chef::DSL::Core need to be changed to Chef::DSL::Recipe (although I'm
not sure who would have done that other than maybe us somewhere, I had
a note in there that nobody should probably touch the Core DSL).

This greatly simplifies the major DSLs down to two:

Recipe DSL - things that only make sense in a context where there is a resource_collection
Universal DSL - things that apply everywhere

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
It is necessary due to the way the crazy lazy DSL module injection works

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
@lamont-granquist lamont-granquist added the Type: Breaking Change Changes the way existing features work in a way that affects users. label Feb 28, 2020
@lamont-granquist lamont-granquist merged commit 8a47d92 into master Feb 28, 2020
@lamont-granquist lamont-granquist deleted the lcg/remove-core-dsl branch February 28, 2020 00:50
@lock
Copy link

lock bot commented Mar 17, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Mar 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Breaking Change Changes the way existing features work in a way that affects users.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant