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

Added --inspect option to inspect shell command. #4864

Merged
merged 1 commit into from Feb 1, 2020

Conversation

zenspider
Copy link
Contributor

  • Removed Resource#inspect (calling to_s) to make debugging a happy experience.
  • Added ResourceBehavior.toggle_inspect to add/remove a basic inspect.
  • Added --inspect flag to shell command. Call toggle_inspect unless --inspect used.
  • Cleaned up matchers.rb and removed most explicit calls to inspect.
  • Added ResourceInspector to rspec's INSPECTOR_CLASSES.

Signed-off-by: Ryan Davis zenspider@chef.io

* Removed Resource#inspect (calling to_s) to make debugging a happy experience.
* Added ResourceBehavior.toggle_inspect to add/remove a basic inspect.
* Added `--inspect` flag to `shell` command. Call toggle_inspect unless --inspect used.
* Cleaned up matchers.rb and removed most explicit calls to inspect.
* Added ResourceInspector to rspec's INSPECTOR_CLASSES.

Signed-off-by: Ryan Davis <zenspider@chef.io>
@codeclimate
Copy link

codeclimate bot commented Jan 28, 2020

Code Climate has analyzed commit 8bd2528 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

View more on Code Climate.

Copy link
Contributor

@clintoncwolfe clintoncwolfe left a comment

Choose a reason for hiding this comment

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

That is a fascinating implementation, and a great user experience. Thanks!

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.

None yet

3 participants