]> git.openstreetmap.org Git - chef.git/commitdiff
Install bundle for OWG site
authorTom Hughes <tom@compton.nu>
Sat, 17 Dec 2016 13:12:42 +0000 (13:12 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 17 Dec 2016 13:12:42 +0000 (13:12 +0000)
cookbooks/foundation/recipes/owg.rb

index ee68631359cc7ed39f67bb802b1c9e59c1db2fb6..f71bd1fa72e74e8573f8936bb74748fd6cfa8fdd 100644 (file)
@@ -24,13 +24,14 @@ package "ruby"
 package "ruby-dev"
 
 gem_package "jekyll"
+gem_package "bundler"
 
 git "/srv/operations.osmfoundation.org" do
   action :sync
   repository "git://github.com/gravitystorm/owg-log.git"
   user "root"
   group "root"
-  notifies :run, "execute[/srv/operations.osmfoundation.org]"
+  notifies :run, "execute[/srv/operations.osmfoundation.org/Gemfile]"
 end
 
 directory "/srv/operations.osmfoundation.org/_site" do
@@ -39,6 +40,15 @@ directory "/srv/operations.osmfoundation.org/_site" do
   group "nogroup"
 end
 
+execute "/srv/operations.osmfoundation.org/Gemfile" do
+  action :nothing
+  command "bundle install"
+  cwd "/srv/operations.osmfoundation.org"
+  user "root"
+  group "root"
+  notifies :run, "execute[/srv/operations.osmfoundation.org]"
+end
+
 execute "/srv/operations.osmfoundation.org" do
   action :nothing
   command "jekyll build --trace"