def start(args): """Start and bootstrap a cluster.""" ec_args = ["elasticluster", "start", args.cluster] ec_args = common.bcbio_args_to_ec(ec_args, args) status = common.wrap_elasticluster(ec_args) if status != 0: sys.exit(status) bootstrap_cluster(args)
def stop(args): """Stop a cluster.""" ec_args = ["elasticluster", "stop", args.cluster] ec_args = common.bcbio_args_to_ec(ec_args, args) sys.exit(common.wrap_elasticluster(ec_args))
def setup(args): """Rerun cluster configuration commands.""" ec_args = ["elasticluster", "setup", args.cluster] ec_args = common.bcbio_args_to_ec(ec_args, args) sys.exit(common.wrap_elasticluster(ec_args))
def ssh(args): """SSH to a cluster.""" ec_args = ["elasticluster", "ssh", args.cluster] ec_args = common.bcbio_args_to_ec(ec_args, args) sys.exit(common.wrap_elasticluster(ec_args))