def push_docs(parser, options, args=None):
    if args:
        print_sub_help(parser, 'push_docs')
        return -1
    
    from fabric.api import run, put, cd, settings
    atexit.register(fabric_cleanup, True)

    host = options.host

    startdir = os.getcwd()
    branchdir = dirname(dirname(dirname(sys.executable)))
    docdir = join(branchdir, 'docs')
    idxpath = join(docdir, '_build', 'html', 'index.html')
    
    if not os.path.isfile(idxpath) or not options.nodocbuild:
        build_docs()

    os.chdir(join(docdir, '_build'))
    tarpath = tar_dir('html', 'docs', '.')
    tarname = os.path.basename(tarpath)
    
    with settings(host_string=host):
        # tar up the docs so we can upload them to the server
        # put the docs on the server and untar them
        put(tarpath, '%s/%s' % (options.docdir, tarname))
        with cd(options.docdir):
            run('tar xzf %s' % tarname)
            run('rm -rf dev_docs')
            run('mv html dev_docs')
            run('rm -f %s' % tarname)
Determine whether or not the given volume belongs to a test-created
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.devtools/src/openmdao/devtools/push_docs.py/push_docs--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/admin/cleanup.py/CleanVolumes._is_test_volume