Closed
Description
When defining a command_map override, output matches intended functionality:
SSHKit.config.command_map[:rake] = 'pitch_fork'
SSHKit.config.command_map[:rake] => 'pitch_fork'
However, when a prefix for the command exists, the original command is served with the prefix rather than the override:
SSHKit.config.command_map[:rake] = 'pitch_fork'
SSHKit.config.command_map[:rake].push("bundle exec")
SSHKit.config.command_map[:rake] => 'bundle exec rake'
I would figure we'd get this:
SSHKit.config.command_map[:rake] = 'pitch_fork'
SSHKit.config.command_map[:rake].push("bundle exec")
SSHKit.config.command_map[:rake] => `bundle exec pitch_fork`
Should L45 be something like this?:
"#{prefixes} #{@map[command] || command}"
Related source: https://github.com/capistrano/sshkit/blob/master/lib/sshkit/command_map.rb#L42-L45
Metadata
Metadata
Assignees
Labels
No labels