1
0
planet_express_express/bin/example_data_generator

16 lines
273 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
2023-09-07 12:42:57 +02:00
(ARGV[0].to_i).times do |i|
2023-09-02 08:38:32 +02:00
puts "#{(date + i).strftime("%Y-%m-%d")} #{sizes.sample} #{providers.sample}"
end