Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Change policyfile generator to use 'policyfiles' directory #1590

Merged
merged 4 commits into from
Aug 27, 2018

Conversation

jonlives
Copy link
Contributor

Change policyfile generator to use 'policyfiles' directory instead of 'policies' directory.

This change comes from the discussion in habitat-sh/core-plans#1544 around standardising on the name of the directory across all Chef software, and the feeling that using the name 'policyfiles' matched the name of the feature better.

Signed-off-by: Jon Cowie jonlives@gmail.com

Description

It changes the name of the policyfiles directory created by chef-dk generator commands from 'policies' to 'policyfiles'. It also fixes the test that checks for that name.

Check List

… 'policies' directory

Signed-off-by: Jon Cowie <jonlives@gmail.com>
@jonlives jonlives requested a review from a team May 31, 2018 09:21
@jonlives jonlives changed the title Change policyfile generator to use 'policyfiles' directory instead of… Change policyfile generator to use 'policyfiles' directory May 31, 2018
@jeremiahsnapp
Copy link
Contributor

Signed-off-by: Jon Cowie <jonlives@gmail.com>
@jonlives
Copy link
Contributor Author

jonlives commented Jun 4, 2018

@jeremiahsnapp I've made the README changes as requested :)

@danielsdeleo
Copy link
Contributor

The directory is also in the chef generate repo recipe, here: https://github.com/chef/chef-dk/blob/fb663fc09d38df9435a9ecbfd5c1c021e107ea2c/lib/chef-dk/skeletons/code_generator/recipes/repo.rb#L35 Thanks for looking into this!

Signed-off-by: Jon Cowie <jonlives@gmail.com>
@jonlives
Copy link
Contributor Author

jonlives commented Jun 5, 2018

Fixed thanks @danielsdeleo, thanks for the catch!

Signed-off-by: Jon Cowie <jonlives@gmail.com>
Copy link
Contributor

@tyler-ball tyler-ball left a comment

Choose a reason for hiding this comment

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

The change LGTM. My only question is since we're changing the functionality of this tool does that need to be in a major version release?

This seems small enough of a change, and its in a generator (which I hope people aren't using in a CI flow) that it could just go in a minor change. What say y'all?

@jonlives
Copy link
Contributor Author

@tyler-ball I think this could go into a minor release but I don't mind waiting if we need to

@cheeseplus
Copy link
Contributor

Given that the generators are pretty busted in a number of fundamental ways (16 open issues last I checked) I don't think we need to wait for a major for any improvements.

@lamont-granquist lamont-granquist merged commit 6475108 into master Aug 27, 2018
@lamont-granquist lamont-granquist deleted the jcowie/policyfiles_generator branch August 27, 2018 17:16
@lock
Copy link

lock bot commented Oct 26, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

6 participants