bundle exec berks install --path ./cookbooks
を実行したら下記のように
怒られました。
$ bundle exec berks install --path ./cookbooks
DEPRECATED: `berks install --path [PATH}` has been replaced by `berks vendor`.
DEPRECATED: Re-run your command as `berks vendor [PATH]` or see `berks help vendor`.
Berkshelfのバージョンを調べたところ
$ berks -v
3.1.5
現在のバージョンでは下記のように書くらしいです。
$ bundle exec berks vendor cookbooks
気をとりなおして、bunlde exec berks vendor cookbooks
を実行するとまたも怒られました。
$ bundle exec berks vendor cookbooks
DEPRECATED: Your Berksfile contains a site location pointing to the Opscode Community Site (site :opscode). Site locations have been replaced by the source location. Change this to: 'source "https://supermarket.getchef.com"' to remove this warning. For more information visit https://github.com/berkshelf/berkshelf/wiki/deprecated-locations
Resolving cookbooks dependencies...
Fetching 'nginx' from source at site-cookbooks/nginx
Fetching cookbooks index from https://supermarket.getchef.com...
Using nginx (0.1.0) from source at site-cookbooks/nginx
Using yum (3.3.2)
Using yum-epel (0.5.1)
Vendoring nginx (0.1.0) to /home/dev/study/chef/6/cookbooks/nginx
Vendoring yum (3.3.2) to /home/dev/study/chef/6/cookbooks/yum
Vendoring yum-epel (0.5.1) to /home/dev/study/chef/6/cookbooks/yum-epel
一応クックブックは作ってくれたようですが、Berkshelfの2系以降はBerksfileの1行目は
site :opscode
ではなくsource "https://supermarket.getchef.com"
と書くようです。