Allow to repeat a day in the example data sets
This commit is contained in:
parent
0d6adf9001
commit
22ff5555a7
@ -8,8 +8,9 @@ providers = ["MR", "LP"]
|
||||
sizes = ["S", "M", "L"]
|
||||
|
||||
date = Date.today
|
||||
day_repeat_count = ARGV[1].to_i
|
||||
|
||||
(ARGV[0].to_i).times do |i|
|
||||
puts "#{(date + i).strftime("%Y-%m-%d")} #{sizes.sample} #{providers.sample}"
|
||||
puts "#{(date + (i / day_repeat_count)).strftime("%Y-%m-%d")} #{sizes.sample} #{providers.sample}"
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user