From e033253ef179175fd9be01fdbad4d44fd94fbcaf Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Thu, 25 Jul 2013 15:28:50 +0100 Subject: [PATCH] Tile: shapeindex (mapnik) all shp files --- cookbooks/tile/recipes/default.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cookbooks/tile/recipes/default.rb b/cookbooks/tile/recipes/default.rb index 8af830cdd..18a708721 100644 --- a/cookbooks/tile/recipes/default.rb +++ b/cookbooks/tile/recipes/default.rb @@ -177,6 +177,14 @@ node[:tile][:data].each do |name,data| end end + execute "#{file}_shapeindex" do + action :nothing + command "find #{directory} -type f -iname '*.shp' -print0 | xargs -0 --no-run-if-empty shapeindex --shape_files" + user "tile" + user "tile" + subscribes :run, resources(:execute => file), :immediately + end + remote_file file do action :create_if_missing source url -- 2.39.5