Class: LogicalConstruct::SSHTunnel::CancelTask

Inherits:
Mattock::Rake::CommandTask
  • Object
show all
Defined in:
lib/logical-construct/protocol/ssh-tunnel.rb

Instance Method Summary collapse

Instance Method Details

#check_verification_commandObject



74
75
76
# File 'lib/logical-construct/protocol/ssh-tunnel.rb', line 74

def check_verification_command
  !super
end

#commandObject



78
79
80
# File 'lib/logical-construct/protocol/ssh-tunnel.rb', line 78

def command
  cmd("ssh", "-n", "-o ControlMaster=auto", "-O exit", target_address)
end

#verify_commandObject



70
71
72
# File 'lib/logical-construct/protocol/ssh-tunnel.rb', line 70

def verify_command
  cmd("ssh", "-o ControlMaster=auto", "-O check", target_address)
end