You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
👍 I also encountered this. Unfortunately changing the code the way you suggest breaks the existing tests, which suggests that someone may be using the existing defaults logic.
I was trying to use it to swap out rake to always run a command before the generated command. Example:
SSHKit.config.command_map[:rake] = "rake stdout_logging"
execute :rake, "foo"
# expecting that to run
# => bundle exec rake stdout_logging foo
# but instead it runs
# => bundle exec /usr/bin/env rake foo
When defining a command_map override, output matches intended functionality:
However, when a prefix for the command exists, the original command is served with the prefix rather than the override:
I would figure we'd get this:
Should L45 be something like this?:
Related source: https://github.com/capistrano/sshkit/blob/master/lib/sshkit/command_map.rb#L42-L45
The text was updated successfully, but these errors were encountered: