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.
15 lines
293 B
Ruby
15 lines
293 B
Ruby
# frozen_string_literal: true
|
|
|
|
UbiRodish.on("vm").run_on("sftp") do
|
|
skip_option_parsing
|
|
|
|
args(0...)
|
|
|
|
run do |argv, opts|
|
|
handle_ssh(opts) do |user:, address:|
|
|
address = "[#{address}]" if address.include?(":")
|
|
["sftp", *argv, "--", "#{user}@#{address}"]
|
|
end
|
|
end
|
|
end
|