Skip to content

Commit

Permalink
reword ssh_cmd comment
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom committed May 5, 2020
1 parent 3457197 commit f53f2f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ood_core/job/adapters/linux_host/launcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,16 @@ def call(cmd, *args, env: {}, stdin: "")
s.success? ? o : raise(Error, e)
end

# The SSH invocation to send the command you pass into cmd (Array<String>)
# The full command to ssh into the destination host and execute the command.
# SSH options include:
# -t Force pseudo-terminal allocation (required to allow tmux to run)
# -o BatchMode=yes (set mode to be non-interactive)
# if ! strict_host_checking
# -o UserKnownHostsFile=/dev/null (do not update the user's known hosts file)
# -o StrictHostKeyChecking=no (do no check the user's known hosts file)
#
# @param destination_host [#to_s] the destination host you wish to ssh into
# @param cmd [Array<#to_s>] the command to be executed on the destination host
def ssh_cmd(destination_host, cmd)
if strict_host_checking
[
Expand Down

0 comments on commit f53f2f1

Please sign in to comment.