This reverts commit b741fe9005
.
This was backed out as problems started occuring shortly after
a large CLI pull request was merged. However, log analysis
shows that the CLI was unrelated to the problems.
19 lines
350 B
Ruby
19 lines
350 B
Ruby
# frozen_string_literal: true
|
|
|
|
UbiRodish.on("vm").run_on("ssh") do
|
|
skip_option_parsing
|
|
|
|
args(0...)
|
|
|
|
run do |argv, opts|
|
|
handle_ssh(opts) do |user:, address:|
|
|
if (i = argv.index("--"))
|
|
options = argv[0...i]
|
|
argv = argv[(i + 1)...]
|
|
end
|
|
|
|
["ssh", *options, "--", "#{user}@#{address}", *argv]
|
|
end
|
|
end
|
|
end
|