MCPcopy Create free account
hub / github.com/cloudflare/cloudflared / write_config

Function write_config

component-tests/util.py:102–106  ·  view source on GitHub ↗
(directory, config)

Source from the content-addressed store, hash-verified

100 running_in_ci, reason=f"This test can't run on CI due to: {reason}")
101
102def write_config(directory, config):
103 config_path = directory / "config.yml"
104 with open(config_path, 'w') as outfile:
105 yaml.dump(config, outfile)
106 return config_path
107
108
109def start_cloudflared(directory, config, cfd_args=["run"], cfd_pre_args=["tunnel"], new_process=False,

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…