-
Notifications
You must be signed in to change notification settings - Fork 21
Support both variants of Net::SSH::Service::Forward#open() #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
2. Ignore *.gem files. 3. Add open() variant with 4 parameters that calls the @session.forward.local variant with 4 parameters as well.
2. Update comments.
Release 2.0.0, which was never released in the original, plus we added a feature.
@@ -0,0 +1 @@ | |||
net-ssh-gateway |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's add that to .gitignore it's not needed to everyone
ensure | ||
close(actual_local_port) | ||
end | ||
def open(*args) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to keep documentation in a single place. Also it probably makes sense to follow the argument options what we have in net-ssh eg local_host in front https://github.com/net-ssh/net-ssh/blob/master/lib/net/ssh/service/forward.rb and not change that. Or go with keyword arguments.
@bitaxis thanks much for the PR 👍 , please also include an usecase, why you need that local_host param. |
Net::SSH::Service::Forward#open() has a 3-argument variant as well as a 4-argument one. The latest published/tagged version only supports the 3-argument one. This pull request adds support for the latter as well while.
Tests are included.