+ # Workaround https://github.com/jekyll/jekyll/issues/7804
+ # by creating a .jekyll-cache folder
+ directory "/srv/#{year}.stateofthemap.org/.jekyll-cache" do
+ mode "755"
+ owner "nobody"
+ group "nogroup"
+ end
+
+ execute "/srv/#{year}.stateofthemap.org/Gemfile" do
+ action :nothing
+ command "bundle install --deployment --jobs #{node[:cpu][:total]}"
+ cwd "/srv/#{year}.stateofthemap.org"
+ user "root"
+ group "root"
+ notifies :run, "execute[/srv/#{year}.stateofthemap.org]"
+ only_if { ::File.exist?("/srv/#{year}.stateofthemap.org/Gemfile") }
+ end
+