Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Avoid downloading files again in SD templates

  • Loading branch information...
commit 81579775ce916f0a8db9d93b01f4766cb6f1ffa6 1 parent 6e06fee
Carlos Eduardo Moreira dos Santos cemsbr authored
2  ServiceDeployer/src/main/resources/chef/service-deploy-recipe-template/recipes/jar.rb
View
@@ -22,7 +22,7 @@
source "#{node['service']['$NAME']['URL']}"
path "#{node['service']['$NAME']['jarDir']}/service$NAMEDeploy.jar"
mode "0777"
- action :create
+ action :create_if_missing
end
service "execute_jar" do
3  ServiceDeployer/src/main/resources/chef/service-deploy-recipe-template/recipes/sa.rb
View
@@ -23,4 +23,7 @@
path "#{node['petals']['install_dir']}/$NAME.zip"
mode "0755"
action :create
+ not_if do
+ File.exists?("#{node['petals']['install_dir']}/../installed/$NAME.zip")
+ end
end
2  ServiceDeployer/src/main/resources/chef/service-deploy-recipe-template/recipes/war.rb
View
@@ -22,5 +22,5 @@
source "#{node['service']['$NAME']['URL']}"
path "#{node['tomcat']['webapp_dir']}/service$NAMEDeploy.war"
mode "0755"
- action :create
+ action :create_if_missing
end
Please sign in to comment.
Something went wrong with that request. Please try again.