#!/usr/bin/env ruby require 'bundler/setup' require 'shiba' require 'shiba/configure' require 'shiba/fuzzer' options = {} parser = Shiba::Configure.make_options_parser(options, only_basics: true) parser.banner = "Dump database statistics into yaml file." parser.parse! Shiba.configure(options) do |errmsg| $stderr.puts(errmsg) $stderr.puts(parser.help) exit 1 end Shiba.connection.analyze! index = Shiba::Fuzzer.new(Shiba.connection).fetch_index puts index.to_yaml