more policy and auth work

This commit is contained in:
Dylan Knutson
2024-12-27 20:06:27 +00:00
parent 18b9bf531c
commit 7a7cc84b94
32 changed files with 623 additions and 679 deletions

View File

@@ -53,8 +53,6 @@ end
namespace :db_sampler do
task export: :environment do
url_names = ENV["url_names"] || raise("need 'url_names' (comma-separated)")
# outfile_path = ENV["outfile"] || raise("need 'outfile' (file path)")
# outfile = File.open(outfile_path, "wb")
outfile = $stdout
DbSampler.new(outfile).export(url_names.split(","))
ensure
@@ -62,8 +60,6 @@ namespace :db_sampler do
end
task import: [:environment] do
# infile_path = ENV["infile"] || raise("need 'infile' (file path)")
# infile = File.open(infile_path, "rb")
infile = $stdin
DbSampler.new(infile).import
ensure