1
0
planet_express_express/bin/example_data_generator

17 lines
326 B
Ruby
Executable File

#!/usr/bin/env ruby
# frozen_string_literal: true
require 'bundler/setup'
require 'date'
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 / day_repeat_count)).strftime("%Y-%m-%d")} #{sizes.sample} #{providers.sample}"
end