Last active
May 9, 2016 21:26
-
-
Save rterp/79837f803f6a4d765319574b7699abc6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
webapps.each do |app| | |
url = "http://nexus.lynden.com/repo/com/lynden/" + app[:name] + "/" + app[:version] + "/" + app[:name] + "-" + app[:version] + ".war" | |
puts "deploying " + app[:name] + "-" + app[:version] | |
fullFileNameNew = app[:name] + "-" + app[:version] | |
fullPath = "/tmp/" + app[:name] + "-" + app[:version] | |
fullPath = fullPath + ".war" | |
puts "Full path to apps " + fullPath | |
remote_file fullPath do | |
source url | |
action :create_if_missing | |
end | |
bash 'deploy_app' do | |
cwd '/usr/local/wildfly/bin' | |
command = '/tmp/deployWildfly.sh ' + fullPath | |
code <<-EOH | |
echo COMMAND #{command} | |
#{command} | |
EOH | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment