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 use_automatic_resource_name, make resource_name automatic #3495

Merged
merged 7 commits into from
Jun 9, 2015

Conversation

jkeiser
Copy link
Contributor

@jkeiser jkeiser commented Jun 5, 2015

No description provided.

@jkeiser jkeiser force-pushed the jk/automatic-automatic-name branch from dc4d691 to 75e568e Compare June 5, 2015 18:05
@jkeiser jkeiser force-pushed the jk/automatic-automatic-name branch from ead95ec to 9812b59 Compare June 5, 2015 21:01
@jkeiser jkeiser changed the title Remove use_automatic_resource_name, make resource_name automatic and un-settable Remove use_automatic_resource_name, make resource_name automatic Jun 5, 2015
@jkeiser jkeiser force-pushed the jk/automatic-automatic-name branch from 9812b59 to 49bfaea Compare June 5, 2015 21:06
@jkeiser jkeiser force-pushed the jk/automatic-automatic-name branch from 6c24575 to 34bbfb6 Compare June 5, 2015 22:20
@@ -17,11 +17,12 @@
* [pr#3397](https://github.com/chef/chef/pull/3397): Validate owner exists in directory resources
* [pr#3418](https://github.com/chef/chef/pull/3418): Add `shell_out` mixin to Chef::Resource class for use in `not_if`/`only_if` conditionals, etc.
* [pr#3406](https://github.com/chef/chef/pull/3406): Add wide-char 'Environment' to `broadcast_env_change` mixin for setting windows environment variables
* [pr#3442](https://github.com/chef/chef/pull/3442): Add `resource_name` to top-level Resource class to make defining resources easier. `use_automatic_resource_name` also added, to support convention-based resource naming.
* [pr#3442](https://github.com/chef/chef/pull/3442): Add `resource_name` to top-level Resource class to make defining resources easier.
Copy link
Contributor

Choose a reason for hiding this comment

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

This changelog entry might be confusing as it looks like that PR was closed and not merged?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was merged actually. Not sure why it says that ...

@jkeiser
Copy link
Contributor Author

jkeiser commented Jun 8, 2015

@thommay all things fixed!


# `provides :resource_name, os: 'linux'`) needs to remove the old
# canonical DSL before adding the new one.
if @resource_name && name == @resource_name
Copy link
Contributor

Choose a reason for hiding this comment

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

is the first check for @resource_name needed?
can name be nil?

@jaym
Copy link
Contributor

jaym commented Jun 9, 2015

👍

thommay added a commit that referenced this pull request Jun 9, 2015
Remove use_automatic_resource_name, make resource_name automatic
@thommay thommay merged commit 59da09f into master Jun 9, 2015
@jkeiser jkeiser deleted the jk/automatic-automatic-name branch July 2, 2015 15:22
@chef chef locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants