Exemplo n.º 1
0
def exec_and_print(command_line, text=None):
    if text is None:
        text = command_line
    result = helpers.cmd_exec(command_line)
    print '===== {}'.format(text)
    print _clean_result(helpers.array_2_str(result['stderr']))
    print _clean_result(helpers.array_2_str(result['stdout']))
Exemplo n.º 2
0
def _show_couchdb_database_dir_content():
    database_dir = couchdb.get_database_dir()
    print '===== couchdb database list'
    for filename in database_dir:
        db_directory = database_dir[filename]
        print '=== {}'.format(db_directory)
        print helpers.array_2_str(
            helpers.cmd_exec('ls -l {}'.format(db_directory))['stdout'])