Skip to content

Prevents Already initialized constant Chef::Artifact::XXX#164

Open
maoueh wants to merge 1 commit into
RiotGamesCookbooks:masterfrom
maoueh:fix-already-defined-constants-warnings
Open

Prevents Already initialized constant Chef::Artifact::XXX#164
maoueh wants to merge 1 commit into
RiotGamesCookbooks:masterfrom
maoueh:fix-already-defined-constants-warnings

Conversation

@maoueh
Copy link
Copy Markdown

@maoueh maoueh commented Jun 8, 2015

Added guards in Chef::Artifact so constants are defined only if they are not defined already. This happens inside a ChefSpec run where recipes are loaded multiple times. This avoids already defined warnings when running ChefSpec.

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.

1 participant