Avoid string mutation
For Ruby 3.4
This commit is contained in:
@@ -96,12 +96,13 @@ module Kamal::Commands
|
|||||||
end
|
end
|
||||||
|
|
||||||
def ssh_keys_args
|
def ssh_keys_args
|
||||||
args = ""
|
"#{ ssh_keys.join("") if ssh_keys}" + "#{" -o IdentitiesOnly=yes" if config.ssh&.keys_only}"
|
||||||
config.ssh.keys&.each do |key|
|
end
|
||||||
args << " -i #{key}"
|
|
||||||
|
def ssh_keys
|
||||||
|
config.ssh.keys&.map do |key|
|
||||||
|
" -i #{key}"
|
||||||
end
|
end
|
||||||
args << " -o IdentitiesOnly=yes" if config.ssh&.keys_only
|
|
||||||
args
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user