Skip to content

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?

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.

1 participant