Created
January 12, 2013 06:05
-
-
Save doritostains/4516363 to your computer and use it in GitHub Desktop.
Capistrano deployment-descriptor, for torquebox, output fix. The default task outputs backslashes at the end of every line of the descriptor.
This file contains hidden or 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
| namespace :deploy do | |
| namespace :torquebox do | |
| task :deployment_descriptor do | |
| puts "creating deployment descriptor" | |
| dd_str = YAML.dump_stream( create_deployment_descriptor(latest_release) ) | |
| dd_file = "#{jboss_home}/standalone/deployments/#{application}-knob.yml" | |
| deploy_knob = "" | |
| dd_str.each_line do |line| | |
| deploy_knob << line | |
| end | |
| put deploy_knob, dd_file, via: :scp | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment