Skip to content

Instantly share code, notes, and snippets.

@doritostains
Created January 12, 2013 06:05
Show Gist options
  • Select an option

  • Save doritostains/4516363 to your computer and use it in GitHub Desktop.

Select an option

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.
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