Apparently Chef::Cookbook::Metadata.new.from_file('metadata.rb') only returns the last token of the metadata. Since the name is most likely not the last token the deployment failed since the name was something else, usually a version from a depends
This was changed so the metadata is an instance that is populated by from_file() and then the name property is returned.
This fixes #1199
As a side note: The unit test passed because the metadata.rb in the test was only the name property.
Apparently Chef::Cookbook::Metadata.new.from_file('metadata.rb') only returns the last token of the metadata. Since the name is most likely not the last token the deployment failed since the name was something else, usually a version from a depends
This was changed so the metadata is an instance that is populated by from_file() and then the name property is returned.
This fixes #1199
As a side note: The unit test passed because the metadata.rb in the test was only the name property.