Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. execute 'StopOldWar' do
  2. command 'wget –http-user=admin –http-password=2km8mg "http://192.168.0.111:8080/manager/text/stop?path=/webapp1" -O -'
  3. action :run
  4. end
  5.  
  6. execute "UnDeployOldWar" do
  7. command 'wget –http-user=admin –http-password=2km8mg "http://192.168.0.111:8080/manager/text/undeploy?path=/webapp1" -O -'
  8. action :run
  9. end
  10.  
  11. execute 'DeployNewWar' do
  12. 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 -'
  13. action :run
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement