Class: LogicalConstruct::SSHTunnel::CreateSSHMaster
- Inherits:
-
Mattock::Rake::CommandTask
- Object
- Mattock::Rake::CommandTask
- LogicalConstruct::SSHTunnel::CreateSSHMaster
- Defined in:
- lib/logical-construct/protocol/ssh-tunnel.rb
Instance Method Summary collapse
Instance Method Details
#action(args) ⇒ Object
45 46 47 48 49 50 |
# File 'lib/logical-construct/protocol/ssh-tunnel.rb', line 45 def action(args) super rescue StandardError => se puts "Attempting to recover from: #{se.}" retry end |
#command ⇒ Object
41 42 43 |
# File 'lib/logical-construct/protocol/ssh-tunnel.rb', line 41 def command cmd("ssh", "-Nf", "-o ControlMaster=auto", "-o ControlPersist=300", "-o ExitOnForwardFailure=yes", target_address) end |
#verify_command ⇒ Object
37 38 39 |
# File 'lib/logical-construct/protocol/ssh-tunnel.rb', line 37 def verify_command cmd("ssh", "-o ControlMaster=auto", "-O check", target_address) end |