hansel 0.2.17 → 0.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile
CHANGED
|
@@ -27,11 +27,12 @@ module HanselCore
|
|
|
27
27
|
IO.popen("#{httperf_cmd} 2>&1") do |pipe|
|
|
28
28
|
status "\n#{httperf_cmd}"
|
|
29
29
|
@results << (httperf_result = HttperfResult.new({
|
|
30
|
-
:rate
|
|
31
|
-
:server
|
|
32
|
-
:port
|
|
33
|
-
:uri
|
|
34
|
-
:num_conns
|
|
30
|
+
:rate => @current_rate,
|
|
31
|
+
:server => @current_job.server,
|
|
32
|
+
:port => @current_job.port,
|
|
33
|
+
:uri => @current_job.uri,
|
|
34
|
+
:num_conns => @current_job.num_conns,
|
|
35
|
+
:description => @current_job.description
|
|
35
36
|
}))
|
|
36
37
|
HttperfResultParser.new(pipe).parse(httperf_result)
|
|
37
38
|
end
|
|
@@ -6,14 +6,15 @@ module HanselCore
|
|
|
6
6
|
attr_accessor :rate, :server, :port, :uri, :num_conns, :replies,
|
|
7
7
|
:connection_rate, :request_rate, :reply_time, :net_io,
|
|
8
8
|
:errors, :status, :reply_rate_min, :reply_rate_avg,
|
|
9
|
-
:reply_rate_max, :reply_rate_stddev
|
|
9
|
+
:reply_rate_max, :reply_rate_stddev, :description
|
|
10
10
|
|
|
11
11
|
def initialize opt
|
|
12
|
-
@rate
|
|
13
|
-
@server
|
|
14
|
-
@port
|
|
15
|
-
@uri
|
|
16
|
-
@num_conns
|
|
12
|
+
@rate = opt[:rate]
|
|
13
|
+
@server = opt[:server]
|
|
14
|
+
@port = opt[:port]
|
|
15
|
+
@uri = opt[:uri]
|
|
16
|
+
@num_conns = opt[:num_conns]
|
|
17
|
+
@description = opt[:description]
|
|
17
18
|
end
|
|
18
19
|
|
|
19
20
|
def post_deserialize
|
|
@@ -28,10 +28,10 @@ namespace :hansel do
|
|
|
28
28
|
end
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
# rake hansel:octave:run[input_dir]
|
|
32
|
-
desc "Run octave on
|
|
33
|
-
task :run, :input_dir do |t, args|
|
|
34
|
-
%x[ cd #{args.input_dir} && octave
|
|
31
|
+
# rake hansel:octave:run[input_dir,input_file]
|
|
32
|
+
desc "Run octave on the specified file"
|
|
33
|
+
task :run, :input_dir, :input_file do |t, args|
|
|
34
|
+
%x[ cd #{args.input_dir} && octave #{args.input_file} ]
|
|
35
35
|
end
|
|
36
36
|
end
|
|
37
37
|
end
|
data/lib/hansel/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hansel
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 51
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 0.2.
|
|
9
|
+
- 18
|
|
10
|
+
version: 0.2.18
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Paul Mylchreest
|
|
@@ -43,9 +43,9 @@ files:
|
|
|
43
43
|
- lib/hansel/httperf_result.rb
|
|
44
44
|
- lib/hansel/httperf_result_parser.rb
|
|
45
45
|
- lib/hansel/job_queue/job_queue.rb
|
|
46
|
+
- lib/hansel/tasks.rake
|
|
46
47
|
- lib/hansel/version.rb
|
|
47
48
|
- lib/hansel.rb
|
|
48
|
-
- lib/tasks/octave.rake
|
|
49
49
|
- spec/arg_parser_spec.rb
|
|
50
50
|
- spec/hansel_spec.rb
|
|
51
51
|
- spec/httperf_result_parser_spec.rb
|