Sha256: 171917a8f5c87f0a189e40e0cadbc6d9d0d0b2027b964019adc835977452c672

Contents?: true

Size: 491 Bytes

Versions: 3

Compression:

Stored size: 491 Bytes

Contents

# coding: utf-8

module Bombard
  class Publisher
    class JenkinsPlot < Publisher
      def publish
        site, asset = @options.split(',')
        prefix      = site + '_' + asset + '_'

        %w[response longest shortest failed transaction_rate concurrency data_transferred].each do |p|
          prop = 'YVALUE=' + @results.send(p).to_s
          file = File.new(prefix + p + '.properties', 'w')
          file.puts prop
          file.close
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bombard-0.1.0 lib/bombard/publisher/jenkins_plot.rb
bombard-0.0.6 lib/bombard/publisher/jenkins_plot.rb
bombard-0.0.5 lib/bombard/publisher/jenkins_plot.rb