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

Comment up Chef::Client and privatize/deprecate unused things #3392

Merged
merged 9 commits into from May 28, 2015

Conversation

jkeiser
Copy link
Contributor

@jkeiser jkeiser commented May 19, 2015

No description provided.

@jkeiser jkeiser changed the title Jk/run comments Comment up Chef::Client and privatize/deprecate unused things May 19, 2015
# See the License for the specific language governing permissions and
# limitations under the License.

require 'chef/client/notification_registry'
Copy link
Contributor

Choose a reason for hiding this comment

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

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Eep! Old thing, empty file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Err, no, that is actually something--there was so much stuff in there about notifications that it seemed useful to separate those methods out, group them--thus the module.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah but in this line aren't you requiring the file you're in?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ohhhh. yes.

@jkeiser
Copy link
Contributor Author

jkeiser commented May 27, 2015

@lamont-granquist based on our talk last week, the main question was whether we should deprecate the attr_writers in question. I have deprecated ohai= and rest=, and deprecated runner entirely; we'll find out soon enough if there are any real use cases, but it seems unlikely. I left node alone simply because tests use it.

If that's all OK, I'mma merge.

@lamont-granquist
Copy link
Contributor

tests are pissed, probably needs a rebase?

@lamont-granquist
Copy link
Contributor

@chef/client-core this needs review

@jkeiser
Copy link
Contributor Author

jkeiser commented May 28, 2015

@lamont-granquist the test failures were a bad rebase, actually, I've fixed it up. Thanks :)


class Chef
class Client
module NotificationRegistry
Copy link
Contributor

Choose a reason for hiding this comment

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

If we're pulling this out, I'd rather it just be a class and then you delegate to it (using Forwardable if you like).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can just put it back in--only reason to put it out in another file was to be able to read it in chunks a bit. I don't think it'll be reused.

@tyler-ball
Copy link
Contributor

👍

@jkeiser jkeiser merged commit cfb7b3e into master May 28, 2015
@jkeiser jkeiser deleted the jk/run_comments branch May 28, 2015 21:00
@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.

None yet

7 participants