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

Provide plugins a way to read/write files on remote hosts #290

Open
mothslaw opened this issue Dec 18, 2020 · 0 comments
Open

Provide plugins a way to read/write files on remote hosts #290

mothslaw opened this issue Dec 18, 2020 · 0 comments

Comments

@mothslaw
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Sometimes a plugin wants to read or write a file (e.g. a DMBS configuration file). In order to do this today, they have to construct a bash script and use stdin/stdout to transfer the file contents back and forth.

Describe the solution you'd like
We could provide functions libs.read_file(connection, path) and libs.write_file(connection, path, file_contents) to make this easier for the plugin.

Additional context
As with any new libs function, this will require new engine functionality. However, the communcations layer in the engine already does support this, so most of the hard work is done. We'd just have to poke this through to the plugin layer.

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

No branches or pull requests

1 participant