module Ariadne::Static

def dump(stats)

Generates the requested stat hash and outputs it to a file.
def dump(stats)
  File.open(File.join(DEFAULT_STATIC_PATH, FILE_NAMES[stats]), "w") do |f|
    f.write(JSON.pretty_generate(send(:"generate_#{stats}")))
    f.write($INPUT_RECORD_SEPARATOR)
  end
end