When testing any recipes/cookbook with ChefSpec that uses artifacts there are a lot of warnings about "previous definition of ... was here":
./tmp/chef/cache/cookbooks/artifact/libraries/chef_artifact.rb:3: warning: already initialized constant Chef::Artifact::DATA_BAG
/tmp/chef/cache/cookbooks/artifact/libraries/chef_artifact.rb:3: warning: previous definition of DATA_BAG was here
/tmp/chef/cache/cookbooks/artifact/libraries/chef_artifact.rb:4: warning: already initialized constant Chef::Artifact::WILDCARD_DATABAG_ITEM
/tmp/chef/cache/cookbooks/artifact/libraries/chef_artifact.rb:4: warning: previous definition of WILDCARD_DATABAG_ITEM was here
/tmp/chef/cache/cookbooks/artifact/libraries/chef_artifact.rb:5: warning: already initialized constant Chef::Artifact::DATA_BAG_NEXUS
/tmp/chef/cache/cookbooks/artifact/libraries/chef_artifact.rb:5: warning: previous definition of DATA_BAG_NEXUS was here
/tmp/chef/cache/cookbooks/artifact/libraries/chef_artifact.rb:6: warning: already initialized constant Chef::Artifact::DATA_BAG_AWS
/tmp/chef/cache/cookbooks/artifact/libraries/chef_artifact.rb:6: warning: previous definition of DATA_BAG_AWS was here
For me these warnings fill about 3 to 4 screens for each run.
This could easily be fixed with rubys OrEquals operator:
When testing any recipes/cookbook with ChefSpec that uses artifacts there are a lot of warnings about "previous definition of ... was here":
For me these warnings fill about 3 to 4 screens for each run.
This could easily be fixed with rubys OrEquals operator: