```ruby
[8] pry> name
=> "statsd"

[9] pry> berkspath
=> "statsd-0.0.1"

[10] pry> ::Chef::CookbookLoader.new(File.dirname(cookbook.path))[name]
Chef::Exceptions::CookbookNotFoundInRepo: Cannot find a cookbook named statsd; did you forget to add metadata to a cookbook? (http://wiki.opscode.com/display/chef/Metadata)
from /Users/me/.rvm/gems/ruby-2.0.0-p247/gems/chef-11.12.2/lib/chef/cookbook_loader.rb:106:in `[]'

[11] pry> ::Chef::CookbookLoader.new(File.dirname(cookbook.path))[berkspath]
=> #<Chef::CookbookVersion:0x007fb103ccc4f8
```