hansel 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/hansel.gemspec +1 -1
- data/lib/hansel/formatting/formatting.rb +0 -3
- data/lib/hansel.rb +3 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/hansel.gemspec
CHANGED
@@ -1,21 +1,18 @@
|
|
1
1
|
module HanselCore
|
2
2
|
module Formatting
|
3
3
|
def yaml_formatter
|
4
|
-
load 'lib/hansel/formatting/yaml_formatter.rb'
|
5
4
|
File.open(output_filename, "w+") do |file|
|
6
5
|
file.puts YamlFormatter.format results
|
7
6
|
end
|
8
7
|
end
|
9
8
|
|
10
9
|
def csv_formatter
|
11
|
-
load 'lib/hansel/formatting/csv_formatter.rb'
|
12
10
|
File.open(output_filename, "w+") do |file|
|
13
11
|
file.puts CsvFormatter.format results
|
14
12
|
end
|
15
13
|
end
|
16
14
|
|
17
15
|
def octave_formatter
|
18
|
-
load 'lib/hansel/formatting/octave_formatter.rb'
|
19
16
|
num_conns = results.first.num_conns rescue nil
|
20
17
|
file_name = output_filename{ "-#{num_conns.to_s}" }
|
21
18
|
File.open(file_name, "w+") do |file|
|
data/lib/hansel.rb
CHANGED
@@ -5,6 +5,9 @@ $:.unshift File.dirname(__FILE__) + "/../lib/hansel"
|
|
5
5
|
|
6
6
|
require 'arg_parser'
|
7
7
|
require 'formatting/formatting'
|
8
|
+
require 'lib/hansel/formatting/yaml_formatter.rb'
|
9
|
+
require 'lib/hansel/formatting/csv_formatter.rb'
|
10
|
+
require 'lib/hansel/formatting/octave_formatter.rb'
|
8
11
|
require 'httperf/httperf'
|
9
12
|
require 'httperf_result'
|
10
13
|
require 'httperf_result_parser'
|