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

Upstream berskfile support #231

Closed
wants to merge 9 commits into from

Conversation

haad
Copy link

@haad haad commented Nov 27, 2014

No description provided.

@@ -278,7 +278,8 @@ def get_recipes_in_cookbook(name):
path = None
cookbook_exists = False
metadata_exists = False
for cookbook_path in cookbook_paths:

for cookbook_path in env.cookbook_search_paths:
Copy link
Owner

Choose a reason for hiding this comment

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

What is cookbook_search_paths for? I didn't find where it is initialized anywere...

OK, sorry, in _readconfig. But why not use cookbook_paths? It can be directly modified in the same way to append berksfile directories

Copy link
Author

Choose a reason for hiding this comment

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

I will have a look at it today.

Copy link
Author

Choose a reason for hiding this comment

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

When I wrote this code I thought that it would be better to have one main arrays for all cookbook paths where others will be merged, because cookbook_paths were user customizable.

So I use cookbook_paths as place where to look for non berkshelf cookbooks and berksfile_cookbooks_directory as a place where I will berks vendor cookbooks. Then I will add both directories to one array and use them later.

@tobami tobami mentioned this pull request Nov 28, 2014
@@ -45,6 +45,7 @@

__testing__ = False

env.berksfile_cookbooks_directory=""
Copy link
Owner

Choose a reason for hiding this comment

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

There should be spaces to both sides of the equality sign. Also a better place to put this statement would be further up, for example right below env.node_work_path = littlechef.node_work_path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants