def main(): parser = getBasicOptionParser() parser = addBasicProvisionerOptions(parser) config = parseBasicOptions(parser) cluster = Cluster(provisioner=config.provisioner, clusterName=config.clusterName, zone=config.zone) cluster.destroyCluster()
def main(): parser = getBasicOptionParser() parser = addBasicProvisionerOptions(parser) config = parseBasicOptions(parser) setLoggingFromOptions(config) cluster = Cluster(provisioner=config.provisioner, clusterName=config.clusterName) cluster.destroyCluster()
def main(): parser = getBasicOptionParser() parser = addBasicProvisionerOptions(parser) parser.add_argument('args', nargs=argparse.REMAINDER) config = parseBasicOptions(parser) setLoggingFromOptions(config) cluster = Cluster(provisioner=config.provisioner, clusterName=config.clusterName) cluster.sshCluster(args=config.args)
def main(): parser = getBasicOptionParser() parser = addBasicProvisionerOptions(parser) parser.add_argument("--insecure", dest='insecure', action='store_true', required=False, help="Temporarily disable strict host key checking.") parser.add_argument('args', nargs=argparse.REMAINDER) config = parseBasicOptions(parser) cluster = Cluster(provisioner=config.provisioner, clusterName=config.clusterName, zone=config.zone) cluster.sshCluster(args=config.args, strict=not config.insecure)
def main(): parser = getBasicOptionParser() parser = addBasicProvisionerOptions(parser) parser.add_argument("--insecure", dest='insecure', action='store_true', required=False, help="Temporarily disable strict host key checking.") parser.add_argument("args", nargs=argparse.REMAINDER, help="Arguments to pass to" "`rsync`. Takes any arguments that rsync accepts. Specify the" " remote with a colon. For example, to upload `example.py`," " specify `toil rsync-cluster -p aws test-cluster example.py :`." "\nOr, to download a file from the remote:, `toil rsync-cluster" " -p aws test-cluster :example.py .`") config = parseBasicOptions(parser) cluster = Cluster(provisioner=config.provisioner, clusterName=config.clusterName, zone=config.zone) cluster.rsyncCluster(args=config.args, strict=not config.insecure)
def main(): parser = getBasicOptionParser() parser = addBasicProvisionerOptions(parser) parser.add_argument( "args", nargs=argparse.REMAINDER, help="Arguments to pass to" "`rsync`. Takes any arguments that rsync accepts. Specify the" " remote with a colon. For example, to upload `example.py`," " specify `toil rsync-cluster -p aws test-cluster example.py :`." "\nOr, to download a file from the remote:, `toil rsync-cluster" " -p aws test-cluster :example.py .`") config = parseBasicOptions(parser) setLoggingFromOptions(config) cluster = Cluster(provisioner=config.provisioner, clusterName=config.clusterName, zone=config.zone) cluster.rsyncCluster(args=config.args)