From 66b320c73184932f665ad9891a7b08111fbc2778 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 17 Dec 2016 13:12:42 +0000 Subject: [PATCH] Install bundle for OWG site --- cookbooks/foundation/recipes/owg.rb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/cookbooks/foundation/recipes/owg.rb b/cookbooks/foundation/recipes/owg.rb index ee6863135..f71bd1fa7 100644 --- a/cookbooks/foundation/recipes/owg.rb +++ b/cookbooks/foundation/recipes/owg.rb @@ -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" -- 2.43.2