It's probably best to leverage [Ridley::Chef::Cookbook#from_path](https://github.com/RiotGames/ridley/blob/master/lib/ridley/chef/cookbook.rb#L34-L47). The returned object has the metadata that you're looking for by sending it the `#metadata` message.