torquebox-knob-capistrano-support provides a simple way to deploy knob files with Capistrano. This method uses :passthrough deploy strategy and copy knob file using wget from distribution server to remote machines.
Add gem to project Gemfile
gem 'torquebox-knob-capistrano-support',
:git => 'https://github.com/Ingemark/torquebox-knob-capistrano-support.git',
:tag => "0.2.3"
#Usage Set your variables as follows:
set :archive_name, "<knob-name>.knob"
set :archive_url, "http://<distribution-host>/<path-to-knob-file>"
set :torquebox_home, "<remote-host-torquebox-dir>"
set :app_host, "<jboss-virtual-host>"
set :app_context, "<context>"
set :pooling, { 'jobs' => { 'min' => 3, 'max' => 10 } } # Optional
and
cap deploy
Enjoy!