summaryrefslogtreecommitdiff
path: root/lib/net/ssh/proxy
diff options
context:
space:
mode:
authorFlorian Wininger <florian@cyberwatch.fr>2021-07-01 22:17:46 +0200
committerFlorian Wininger <florian@cyberwatch.fr>2021-07-01 22:17:46 +0200
commitb11dc6e755bbc03058bb12c623961a0695538fb0 (patch)
tree567f524185abc09ec6bb2a6a593b5a4abb78393d /lib/net/ssh/proxy
parent093a84100e51365db9680d8ebd0755a4f1ebb455 (diff)
downloadnet-ssh-b11dc6e755bbc03058bb12c623961a0695538fb0.tar.gz
Fix empty line for code clarity
Diffstat (limited to 'lib/net/ssh/proxy')
-rw-r--r--lib/net/ssh/proxy/command.rb2
-rw-r--r--lib/net/ssh/proxy/errors.rb2
-rw-r--r--lib/net/ssh/proxy/http.rb2
-rw-r--r--lib/net/ssh/proxy/https.rb2
-rw-r--r--lib/net/ssh/proxy/jump.rb2
-rw-r--r--lib/net/ssh/proxy/socks4.rb2
-rw-r--r--lib/net/ssh/proxy/socks5.rb2
7 files changed, 1 insertions, 13 deletions
diff --git a/lib/net/ssh/proxy/command.rb b/lib/net/ssh/proxy/command.rb
index 1bb2423..d6a89dd 100644
--- a/lib/net/ssh/proxy/command.rb
+++ b/lib/net/ssh/proxy/command.rb
@@ -5,7 +5,6 @@ require 'net/ssh/proxy/errors'
module Net
module SSH
module Proxy
-
# An implementation of a command proxy. To use it, instantiate it,
# then pass the instantiated object via the :proxy key to
# Net::SSH.start:
@@ -105,6 +104,7 @@ module Net
if IO.select([self], nil, [self], timeout_in_seconds) == nil
raise "Unexpected spurious read wakeup"
end
+
retry
end
result
diff --git a/lib/net/ssh/proxy/errors.rb b/lib/net/ssh/proxy/errors.rb
index bbaf5dd..d7e5458 100644
--- a/lib/net/ssh/proxy/errors.rb
+++ b/lib/net/ssh/proxy/errors.rb
@@ -3,7 +3,6 @@ require 'net/ssh/errors'
module Net
module SSH
module Proxy
-
# A general exception class for all Proxy errors.
class Error < Net::SSH::Exception; end
@@ -12,7 +11,6 @@ module Net
# Used when the server doesn't recognize the user's credentials.
class UnauthorizedError < Error; end
-
end
end
end
diff --git a/lib/net/ssh/proxy/http.rb b/lib/net/ssh/proxy/http.rb
index 1cfaa62..cf94634 100644
--- a/lib/net/ssh/proxy/http.rb
+++ b/lib/net/ssh/proxy/http.rb
@@ -4,7 +4,6 @@ require 'net/ssh/proxy/errors'
module Net
module SSH
module Proxy
-
# An implementation of an HTTP proxy. To use it, instantiate it, then
# pass the instantiated object via the :proxy key to Net::SSH.start:
#
@@ -94,7 +93,6 @@ module Net
body: body }
end
end
-
end
end
end
diff --git a/lib/net/ssh/proxy/https.rb b/lib/net/ssh/proxy/https.rb
index 298d537..a0da2a4 100644
--- a/lib/net/ssh/proxy/https.rb
+++ b/lib/net/ssh/proxy/https.rb
@@ -6,7 +6,6 @@ require 'net/ssh/proxy/http'
module Net
module SSH
module Proxy
-
# A specialization of the HTTP proxy which encrypts the whole connection
# using OpenSSL. This has the advantage that proxy authentication
# information is not sent in plaintext.
@@ -46,7 +45,6 @@ module Net
end
end
end
-
end
end
end
diff --git a/lib/net/ssh/proxy/jump.rb b/lib/net/ssh/proxy/jump.rb
index ab67e84..b92dcdc 100644
--- a/lib/net/ssh/proxy/jump.rb
+++ b/lib/net/ssh/proxy/jump.rb
@@ -4,7 +4,6 @@ require 'net/ssh/proxy/command'
module Net
module SSH
module Proxy
-
# An implementation of a jump proxy. To use it, instantiate it,
# then pass the instantiated object via the :proxy key to
# Net::SSH.start:
@@ -50,7 +49,6 @@ module Net
@command_line_template = template
end
end
-
end
end
end
diff --git a/lib/net/ssh/proxy/socks4.rb b/lib/net/ssh/proxy/socks4.rb
index eac35b0..ddd95b0 100644
--- a/lib/net/ssh/proxy/socks4.rb
+++ b/lib/net/ssh/proxy/socks4.rb
@@ -6,7 +6,6 @@ require 'net/ssh/proxy/errors'
module Net
module SSH
module Proxy
-
# An implementation of a SOCKS4 proxy. To use it, instantiate it, then
# pass the instantiated object via the :proxy key to Net::SSH.start:
#
@@ -63,7 +62,6 @@ module Net
return socket
end
end
-
end
end
end
diff --git a/lib/net/ssh/proxy/socks5.rb b/lib/net/ssh/proxy/socks5.rb
index 08f2a3c..77300cd 100644
--- a/lib/net/ssh/proxy/socks5.rb
+++ b/lib/net/ssh/proxy/socks5.rb
@@ -4,7 +4,6 @@ require 'net/ssh/proxy/errors'
module Net
module SSH
module Proxy
-
# An implementation of a SOCKS5 proxy. To use it, instantiate it, then
# pass the instantiated object via the :proxy key to Net::SSH.start:
#
@@ -136,7 +135,6 @@ module Net
end
end
end
-
end
end
end