Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- execute 'StopOldWar' do
- command 'wget –http-user=admin –http-password=2km8mg "http://192.168.0.111:8080/manager/text/stop?path=/webapp1" -O -'
- action :run
- end
- execute "UnDeployOldWar" do
- command 'wget –http-user=admin –http-password=2km8mg "http://192.168.0.111:8080/manager/text/undeploy?path=/webapp1" -O -'
- action :run
- end
- execute 'DeployNewWar' do
- command 'wget –http-user=admin –http-password=2km8mg "http://192.168.0.111:8080/manager/text/deploy?war=file:/warfiles/webapp1.war&path=/webapp1" -O -'
- action :run
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement