Method
__init__
(
self,
name,
action_exec_id,
script_local_path_abs,
named_args=None,
positional_args=None,
env_vars=None,
user=None,
sudo=False,
timeout=None,
cwd=None,
sudo_password=None,
)
Source from the content-addressed store, hash-verified
| 224 | |
| 225 | class ShellScriptAction(ShellCommandAction): |
| 226 | def __init__( |
| 227 | self, |
| 228 | name, |
| 229 | action_exec_id, |
| 230 | script_local_path_abs, |
| 231 | named_args=None, |
| 232 | positional_args=None, |
| 233 | env_vars=None, |
| 234 | user=None, |
| 235 | sudo=False, |
| 236 | timeout=None, |
| 237 | cwd=None, |
| 238 | sudo_password=None, |
| 239 | ): |
| 240 | super(ShellScriptAction, self).__init__( |
| 241 | name=name, |
| 242 | action_exec_id=action_exec_id, |
| 243 | command=None, |
| 244 | user=user, |
| 245 | env_vars=env_vars, |
| 246 | sudo=sudo, |
| 247 | timeout=timeout, |
| 248 | cwd=cwd, |
| 249 | sudo_password=sudo_password, |
| 250 | ) |
| 251 | self.script_local_path_abs = script_local_path_abs |
| 252 | self.named_args = named_args |
| 253 | self.positional_args = positional_args |
| 254 | |
| 255 | def get_full_command_string(self): |
| 256 | return self._format_command() |
Callers
nothing calls this directly
Tested by
no test coverage detected