chef-cookbooks / rubygems

Configures Rubygems sources and provides rubygems_api resource
https://supermarket.chef.io/cookbooks/rubygems
Apache License 2.0
5 stars 14 forks source link

Do not attempt to manage home directories. #8

Closed rhass closed 7 years ago

rhass commented 7 years ago

This resolves a bug in the gemrc provider when using name :local or gemrc "local" in which the resource could potentially recursively change file permissions for the home directory. We now skip the directory resource call within the gemrc custom resource when the gemrc resource name resolves to either :local or "local" to ensure files and directories do not become tainted when the user or group values are set.

Additionally, this cleans up the chefspec slightly and adds a context to make it a little cleaner.

/cc @chef-cookbooks/engineering-services @tas50