def send_output(config, out_file):
    """Send an output file with state information from a run.
    """
    if config.get("type") == "S3":
        keyname = "%s/%s" % (tz.get_in(["folders", "output"], config), os.path.basename(out_file))
        bucket = tz.get_in(["buckets", "run"], config)
        _put_s3(out_file, keyname, bucket)
    else:
        pass
dataset/ETHPy150Open chapmanb/bcbio-nextgen-vm/bcbiovm/ship/pack.py/send_output/original