Sha256: d7ce646a9ea7123f04db68525cca973d9b9d9ff07d0fafda571fa85c22a49296

Contents?: true

Size: 383 Bytes

Versions: 4

Compression:

Stored size: 383 Bytes

Contents

#!/usr/bin/env ruby

begin
  template = File.open(ARGV[0], "r").read
  amount = ARGV[1].to_i
  puts "# Autogenerated with stresser-loggen #{ARGV.join(' ')}\n\n"
  amount.times do |i|
    puts template.gsub '{{n}}', i.to_s
  end
rescue Exception => e
  puts "ERROR:"
  puts e
  puts "~"*80
  puts "Usage (e.g. to generate 15 sessions): stresser-loggen some.log.tpl 15 > some.log"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stresser-0.5.0 bin/stresser-loggen
stresser-0.4.0 bin/stresser-loggen
stresser-0.3.2 bin/stresser-loggen
stresser-0.3.1 bin/stresser-loggen