For deployment in FreeBSD prisons, I need my commands to look like this:
ssh user@example.org "jexec 'web_jail' $THE_COMMAND_HERE" ssh user@example.org "jexec 'db_jail' $ANOTHER_COMMAND_HERE" ...
Please note that although it is technically possible, I want to avoid the direct inclusion of SSH in prisons!
So how can I get Capistrano to work like this?
(Note that I mainly ask the question of making changes to the default tasks by default.)
Got a chainsaw?
One part that needs clarification is whether it is web_jail or db_jail? Is this a role with _jail added to it?
, , - Capistrano:: Command.replace_placeholders. alias_method_chain . lib/capistrano/command.rb.
, - "shell", .
, , .