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.
This resolves a bug in the
gemrc
provider when usingname :local
orgemrc "local"
in which the resource could potentially recursively change file permissions for the home directory. We now skip thedirectory
resource call within thegemrc
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