module Mina::SshHelpers
Public Instance Methods
ssh_command()
click to toggle source
# File lib/mina/extras/extra.rb, line 89 def ssh_command args = domain! args = if settings[:sudo] && fetch(:sudoer) "#{sudoer}@#{args}" elsif user? "#{user}@#{args}" end args << " -i #{identity_file}" if identity_file? args << " -p #{port}" if port? args << " -t" "ssh #{args}" end