(
self,
config: RuntimeConfig | SSHConfig | None = None,
*,
scanner_provider: CommandToolProviderConfig | None = None,
)
| 115 | """ |
| 116 | |
| 117 | def __init__( |
| 118 | self, |
| 119 | config: RuntimeConfig | SSHConfig | None = None, |
| 120 | *, |
| 121 | scanner_provider: CommandToolProviderConfig | None = None, |
| 122 | ) -> None: |
| 123 | if isinstance(config, RuntimeConfig): |
| 124 | self.runtime = config |
| 125 | elif isinstance(config, SSHConfig): |
| 126 | self.runtime = RuntimeConfig(provider="ssh", ssh=config) |
| 127 | else: |
| 128 | self.runtime = RuntimeConfig() |
| 129 | self.scanner_provider = scanner_provider |
| 130 | self.client: Any | None = None |
| 131 | self.session: Any | None = None |
| 132 | |
| 133 | def _uses_ssh(self) -> bool: |
| 134 | return self.runtime.provider == "ssh" |
nothing calls this directly
no test coverage detected