(
self,
name,
action_exec_id,
command,
user,
env_vars=None,
sudo=False,
timeout=None,
cwd=None,
sudo_password=None,
)
| 62 | EXPORT_CMD = "export" |
| 63 | |
| 64 | def __init__( |
| 65 | self, |
| 66 | name, |
| 67 | action_exec_id, |
| 68 | command, |
| 69 | user, |
| 70 | env_vars=None, |
| 71 | sudo=False, |
| 72 | timeout=None, |
| 73 | cwd=None, |
| 74 | sudo_password=None, |
| 75 | ): |
| 76 | self.name = name |
| 77 | self.action_exec_id = action_exec_id |
| 78 | self.command = command |
| 79 | self.env_vars = env_vars or {} |
| 80 | self.user = user |
| 81 | self.sudo = sudo |
| 82 | self.timeout = timeout |
| 83 | self.cwd = cwd |
| 84 | self.sudo_password = sudo_password |
| 85 | |
| 86 | def get_full_command_string(self): |
| 87 | # Note: We pass -E to sudo because we want to preserve user provided environment variables |
nothing calls this directly
no outgoing calls
no test coverage detected