Skip to content
This repository has been archived by the owner on Mar 21, 2018. It is now read-only.

Add buff-ignore; correctly apply chefignore #192

Merged
merged 4 commits into from
Jul 18, 2013
Merged

Add buff-ignore; correctly apply chefignore #192

merged 4 commits into from
Jul 18, 2013

Conversation

sethvargo
Copy link
Contributor

# @return [Boolean]
# true if it should be ignored, false otherwise
def ignored?(file)
!!chefignore && chefignore.send(:ignored?, file)
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is this a private function on the Chefignore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It can be made public, but the ignore file should really only respond to #apply, given an array argument. I can make the method public if that makes more sense though.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it makes sense to make the Chefignore class a bit more flexible

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@sethvargo
Copy link
Contributor Author

Well that's annoying. The order of the checksums is not guaranteed. @reset @ivey @bluepojo any idea a better way to unit test that the files are ignored?

@sethvargo
Copy link
Contributor Author

@reset @ivey what is the status for this?

@reset
Copy link
Collaborator

reset commented Jul 18, 2013

@sethvargo the build is still failing on this branch

@sethvargo
Copy link
Contributor Author

@reset right, we talked about it in code review. I don't have a sustainable way to test this and needed some pointers. The order for SHAs is not guaranteed

@sethvargo
Copy link
Contributor Author

@reset I had to call #sort on the checksum keys to make this testable

reset added a commit that referenced this pull request Jul 18, 2013
Add buff-ignore; correctly apply chefignore
@reset reset merged commit 2c8826a into berkshelf:master Jul 18, 2013
@sethvargo sethvargo deleted the 151_chefignore branch July 18, 2013 19:07
bflad added a commit to bflad/chef-mysql_connector that referenced this pull request Oct 5, 2013
@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.

Not respecting chefignore? Upload command does not respect chefignore
2 participants