MCPcopy
hub / github.com/saltstack/salt / run

Method run

setup.py:318–329  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

316 """
317
318 def run(self):
319 if not os.path.exists(PACKAGED_FOR_SALT_SSH_FILE):
320 # Write the salt-ssh packaging file
321 if getattr(self.distribution, "salt_ssh_packaging_file", None) is None:
322 print("This command is not meant to be called on it's own")
323 exit(1)
324
325 # pylint: disable=E0602
326 open(
327 self.distribution.salt_ssh_packaging_file, "w", encoding="utf-8"
328 ).write("Packaged for Salt-SSH\n")
329 # pylint: enable=E0602
330
331
332class Develop(develop):

Callers

nothing calls this directly

Calls 3

openFunction · 0.50
existsMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected