Sha256: 0ee1fe1fc929f45e88d5e04018504228ca112f7b95ab8b5f8375deda7b665012
Contents?: true
Size: 729 Bytes
Versions: 9
Compression:
Stored size: 729 Bytes
Contents
# frozen_string_literal: true require 'active_record' require_relative 'evil_seed/version' require_relative 'evil_seed/configuration' require_relative 'evil_seed/dumper' # Generate anonymized dumps for your ActiveRecord models module EvilSeed DEFAULT_CONFIGURATION = EvilSeed::Configuration.new def self.configure yield DEFAULT_CONFIGURATION end # Make the actual dump # @param filepath_or_io [String, IO] Path to result dumpfile or IO to write results into def self.dump(filepath_or_io) io = if filepath_or_io.respond_to?(:write) # IO filepath_or_io else File.open(filepath_or_io, mode: 'w') end EvilSeed::Dumper.new(DEFAULT_CONFIGURATION).call(io) end end
Version data entries
9 entries across 9 versions & 1 rubygems