-
Notifications
You must be signed in to change notification settings - Fork 5
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
Generic driver to map command calls to shell or shell in container calls. #155
Comments
@NickCao, please explain in the description :) |
children:
power:
type: jumpstarter.drivers.command.driver.Command
config:
on: ["./power_on.sh"]
off: ["./power_off.sh"] |
What do you think about making it shell-specific instead, so we could run shell commands instead of Command makes it look very generic, may be Shell is more specific? WDYT? Also some additional ideas,so we can pass arguments, and another layer so, later in time export:
power:
type: jumpstarter.drivers.shell.driver.Shell
config:
methods:
on: "/usr/bin/power on"
off: "/usr/bin/power off"
free: "free -h"
multiline_params: >
echo "hi,"
echo "I am a multi-line script"
echo "I accept parameters ${1} ${2}" |
The exporter configuration would look like this:
The text was updated successfully, but these errors were encountered: