MCPcopy Index your code
hub / github.com/apache/caldera / __init__

Method __init__

app/objects/secondclass/c_executor.py:47–75  ·  view source on GitHub ↗
(self, name, platform, command=None, code=None, language=None, build_target=None,
                 payloads=None, uploads=None, timeout=60, parsers=None, cleanup=None, variations=None,
                 additional_info=None, **kwargs)

Source from the content-addressed store, hash-verified

45 return self.decode_bytes(self.replace_app_props(self.encode_string(self.command)))
46
47 def __init__(self, name, platform, command=None, code=None, language=None, build_target=None,
48 payloads=None, uploads=None, timeout=60, parsers=None, cleanup=None, variations=None,
49 additional_info=None, **kwargs):
50 super().__init__()
51 self.name = name
52 self.platform = platform.lower()
53
54 self.command = command
55 self.code = code
56 self.language = language
57 self.build_target = build_target
58
59 self.payloads = payloads if payloads else []
60 self.uploads = uploads if uploads else []
61
62 self.timeout = timeout
63 self.parsers = parsers if parsers else []
64
65 if not cleanup:
66 self.cleanup = []
67 elif isinstance(cleanup, str):
68 self.cleanup = [cleanup]
69 else:
70 self.cleanup = cleanup
71
72 self.variations = get_variations(variations)
73
74 self.additional_info = additional_info or dict()
75 self.additional_info.update(**kwargs)
76
77 def __getattr__(self, item):
78 try:

Callers

nothing calls this directly

Calls 2

get_variationsFunction · 0.85
updateMethod · 0.80

Tested by

no test coverage detected