Method: Mrsk::Configuration#ssh_proxy
- Defined in:
- lib/mrsk/configuration.rb
#ssh_proxy ⇒ Object
119 120 121 122 123 124 |
# File 'lib/mrsk/configuration.rb', line 119 def ssh_proxy if raw_config.ssh.present? && raw_config.ssh["proxy"] Net::SSH::Proxy::Jump.new \ raw_config.ssh["proxy"].include?("@") ? raw_config.ssh["proxy"] : "root@#{raw_config.ssh["proxy"]}" end end |