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

use ssh-tunnel port if present #38

Merged
merged 1 commit into from
Dec 9, 2015
Merged

Conversation

ssendev
Copy link
Contributor

@ssendev ssendev commented Oct 12, 2015

this allows to use the dynamic port from ssh-tunnel instead of hard coding one.

@achambers
Copy link
Member

Hi @ssendev. Thanks for this. A couple of things:

  1. Tests
  2. Can you please update the README. In particular the srcPort section and the Prerequisites section
  3. Tests

Thanks.

@ssendev ssendev force-pushed the patch-1 branch 2 times, most recently from 07e893e to b5785bd Compare October 12, 2015 22:22
@lukemelia
Copy link
Contributor

Overall, looks good to me. I don't use ssh-tunnel, so it would be good to get a review from someone who does.

@@ -42,6 +48,7 @@ module.exports = {
},
redisDeployClient: function(context) {
var redisOptions = this.pluginConfig;
redisOptions.port = this.readConfig('port');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lukemelia How do you feel about this modifying the config object? Feels like this is a perfect candidate for need to have passed in a clone of the config so that any modifications to it don't affect anything outside this hook.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@achambers Every default config value has this issue. Maybe the right path is for ember-cli-deploy to clone the config once per plugin. Anyway, not an issue for this PR in particular.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@achambers
Copy link
Member

@duizendnegen Was it you who uses ssh-tunnel?

@duizendnegen
Copy link
Contributor

No, don't even use Redis - not sure who does

On Tue, Nov 10, 2015 at 7:40 PM, Aaron Chambers notifications@github.com
wrote:

@duizendnegen Was it you who uses ssh-tunnel?

Reply to this email directly or view it on GitHub:
#38 (comment)

@ghedamat
Copy link
Contributor

@achambers it's me :) and I think this could PR could work well indeed.

I'm a bit weary of using defaults that explicitly refer to other plugins but we do it already for a few other things anyway and this will probably lower the learning curve also for the ssh tunnel plugin so in general I'm 👍

@ghedamat
Copy link
Contributor

ghedamat commented Dec 3, 2015

@lukemelia I think we can merge this if you agree

@ghedamat
Copy link
Contributor

ghedamat commented Dec 9, 2015

@ssendev sorry for the delay in merging & thanks for the PR

ghedamat added a commit that referenced this pull request Dec 9, 2015
use ssh-tunnel port if present
@ghedamat ghedamat merged commit 1df912d into ember-cli-deploy:master Dec 9, 2015
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.

5 participants