1
0
planet_express_express/bin/example_data_generator

17 lines
326 B
Plaintext
Raw Normal View History

2024-08-25 10:21:02 +02:00
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'bundler/setup'
2023-09-02 08:38:32 +02:00
require 'date'
providers = ["MR", "LP"]
sizes = ["S", "M", "L"]
date = Date.today
day_repeat_count = ARGV[1].to_i
2023-09-02 08:38:32 +02:00
2023-09-07 12:42:57 +02:00
(ARGV[0].to_i).times do |i|
puts "#{(date + (i / day_repeat_count)).strftime("%Y-%m-%d")} #{sizes.sample} #{providers.sample}"
2023-09-02 08:38:32 +02:00
end