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

Require a Berksfile for the #info command #563

Merged
merged 2 commits into from
May 30, 2013
Merged

Require a Berksfile for the #info command #563

merged 2 commits into from
May 30, 2013

Conversation

sethvargo
Copy link
Contributor

Also includes:

  • A formatter for #info
  • A #pretty_hash and #pretty_json method for CachedCookbooks

@@ -346,20 +346,23 @@ def show(name)
Berkshelf.formatter.msg(cookbook.path)
end

method_option :version,
method_option :berksfile,
Copy link
Contributor

Choose a reason for hiding this comment

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

We talked about this one today. We shouldn't require a Berksfile for the info command and we shouldn't resolve

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 thought the resolution was the exact opposite, as I have it here. We discussed adding a berks shelf info which would behave the way this command currently functions. This differs from the behavior of list, which is confusing to the user. Did I misunderstand this today? I thought we agreed that everything should operate on a Berksfile. @ivey?

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree, both with the PR and that that was the resolution Sunday.

@sethvargo
Copy link
Contributor Author

Failure is due to an aruba timeout error

@sethvargo
Copy link
Contributor Author

@reset now that we have berks shelf show, can we merge this?

#
# @param [CachedCookbook] cookbook
def info(cookbook)
cookbooks[cookbook.cookbook_name] ||= {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be cookbooks ||= {}?

Copy link
Contributor

Choose a reason for hiding this comment

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

Nope, this line should be gone entirely.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ivey this is fixed. Nice catch!

@ivey
Copy link
Contributor

ivey commented May 29, 2013

👍 after the unnecessary cookbooks[cookbook.cookbook_name] ||= {} line is gone.

@sethvargo
Copy link
Contributor Author

@ivey fixed those concerns and rebased

@sethvargo
Copy link
Contributor Author

I don't understand this build failure, and I can't reproduce locally on the same version of Ruby 1.9.2

reset added a commit that referenced this pull request May 30, 2013
Require a Berksfile for the #info command
@reset reset merged commit cd4d00c into berkshelf:master May 30, 2013
@sethvargo sethvargo deleted the info_formatter branch May 30, 2013 05:12
@berkshelf berkshelf locked and limited conversation to collaborators Jun 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.

3 participants