imagery: remove layer yml on delete
authorGrant Slater <git@firefishy.com>
Thu, 8 Sep 2016 17:58:12 +0000 (18:58 +0100)
committerGrant Slater <git@firefishy.com>
Thu, 8 Sep 2016 17:58:12 +0000 (18:58 +0100)
cookbooks/imagery/resources/layer.rb

index 930d089..60712a6 100644 (file)
@@ -105,6 +105,10 @@ action :create do
 end
 
 action :delete do
+  file "/srv/imagery/layers/#{site}/#{layer}.yml" do
+    action :delete
+  end
+
   service "mapserv-fcgi-layer-#{layer}" do
     action [:stop, :disable]
   end