Skip to content
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

Support both variants of Net::SSH::Service::Forward#open() #12

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

bitaxis
Copy link

@bitaxis bitaxis commented Dec 8, 2016

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.

2. Ignore *.gem files.
3. Add open() variant with 4 parameters that calls the @session.forward.local variant with 4 parameters as well.
Release 2.0.0, which was never released in the original, plus we added a feature.
@@ -0,0 +1 @@
net-ssh-gateway
Copy link
Collaborator

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)
Copy link
Collaborator

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.

@mfazekas
Copy link
Collaborator

mfazekas commented Dec 8, 2016

@bitaxis thanks much for the PR 👍 , please also include an usecase, why you need that local_host param.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants