def nodes(exp): "Select nodes based on a regular expression" for node in instances(exp): use(node) for node in cf_instances(exp): use(node)
def preview(): "Preview nodes" for node in instances('preview-.*'): use(node) for node in cf_instances('preview-.*'): use(node)
def production(): "Production nodes" for node in instances('production-.*'): use(node) for node in cf_instances('production-.*'): use(node)
def all(): "All nodes" for node in instances(): use(node) for node in cf_instances(): use(node)
def cloudflare(exp='.*'): for node in cf_instances(exp): use(node)
def production(): "Production nodes" for node in instances("production-.*"): use(node) for node in cf_instances("production-.*"): use(node)
def preview(): "Preview nodes" for node in instances("preview-.*"): use(node) for node in cf_instances("preview-.*"): use(node)
def cloudflare(exp=".*"): for node in cf_instances(exp): use(node)