more policy and auth work
This commit is contained in:
4
Rakefile
4
Rakefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user