'swift-ring-builder <builder_file> create <part_power> <replicas>
<min_part_hours>
Creates <builder_file> with 2^<part_power> partitions and <replicas>.
<min_part_hours> is number of hours to restrict moving a partition more
than once.'

@staticmethod
def create():

    if (len(argv) < 6):
        print(Commands.create.__doc__.strip())
        exit(EXIT_ERROR)
    builder = RingBuilder(int(argv[3]), float(argv[4]), int(argv[5]))
    backup_dir = pathjoin(dirname(builder_file), 'backups')
    try:
        mkdir(backup_dir)
    except OSError as err:
        if (err.errno != EEXIST):
            raise
    builder.save(pathjoin(backup_dir, (('%d.' % time()) + basename(builder_file))))
    builder.save(builder_file)
    exit(EXIT_SUCCESS)
