Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixed ngrok persistence support PR #20

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

Conversation

texpert
Copy link
Collaborator

@texpert texpert commented Dec 17, 2021

This is a second stab at enabling ngrok persistence support, based on the #11 by @scottmartinnet

Is now correctly working, launching ngrok as a background process if persistence key is present

Decomposed the start method for maintainability and clarity.
Fix `line.end_with?` to receive the `addr` in an interpolated String, because if `addr` is an Integer, `end_with?` is failing with a `No implicit conversion of Integer into String` error.
…d of the volatile `/tmp/`

Refactored `store_new_ngrok_process` to use direct `File.write` instead of File.open { |f| f.write }
…ence.

Added '#start' method unit tests.
@texpert
Copy link
Collaborator Author

texpert commented Jan 5, 2022

@bogdanovich, could you, please, review this PR?

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

Successfully merging this pull request may close these issues.

1 participant