davx5-ose/scripts/gen-contacts.rb
Ricki Hirner 27cf6ab222 Version bump to 1.1.1.1
* add yield points to allow processing of groups with many contacts
* new script to generate contacts for testing
2016-06-23 11:42:12 +02:00

14 lines
279 B
Ruby
Executable file

#!/usr/bin/ruby
File.open("contacts.vcf", "w") do |f|
for i in 1..600 do
f.puts "BEGIN:VCARD"
f.puts "VERSION:3.0"
f.puts "FN:Kontakt Nr. #{i}"
f.puts "N:Kontakt Nr. #{i}"
f.puts "EMAIL:#{i}@google-god.com"
f.puts "PHONE:#{i}#{i}#{i}"
f.puts "END:VCARD"
end
end