stella 0.5.1 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. data/README.txt +84 -24
  2. data/Rakefile +6 -1
  3. data/lib/stella.rb +5 -4
  4. data/lib/stella/adapter/ab.rb +31 -4
  5. data/lib/stella/adapter/base.rb +15 -1
  6. data/lib/stella/adapter/httperf.rb +35 -4
  7. data/lib/stella/adapter/siege.rb +51 -29
  8. data/lib/stella/cli.rb +45 -22
  9. data/lib/stella/cli/agents.rb +73 -0
  10. data/lib/stella/cli/language.rb +2 -0
  11. data/lib/stella/cli/localtest.rb +5 -0
  12. data/lib/stella/command/base.rb +1 -1
  13. data/lib/stella/command/localtest.rb +84 -68
  14. data/lib/stella/test/{summarybase.rb → base.rb} +3 -7
  15. data/lib/stella/test/definition.rb +10 -5
  16. data/lib/stella/test/{runsummary.rb → run/summary.rb} +4 -6
  17. data/lib/stella/test/{testsummary.rb → summary.rb} +27 -29
  18. data/lib/utils/escape.rb +302 -0
  19. data/lib/utils/mathutil.rb +36 -34
  20. data/support/text/en.yaml +7 -1
  21. metadata +8 -102
  22. data/doc/classes/Crypto.html +0 -248
  23. data/doc/classes/Crypto/Key.html +0 -308
  24. data/doc/classes/Enumerable.html +0 -309
  25. data/doc/classes/FileUtil.html +0 -310
  26. data/doc/classes/HTTPUtil.html +0 -530
  27. data/doc/classes/MathUtil.html +0 -210
  28. data/doc/classes/Stella.html +0 -238
  29. data/doc/classes/Stella/Adapter.html +0 -127
  30. data/doc/classes/Stella/Adapter/ApacheBench.html +0 -1076
  31. data/doc/classes/Stella/Adapter/Base.html +0 -432
  32. data/doc/classes/Stella/Adapter/CommandNotReady.html +0 -146
  33. data/doc/classes/Stella/Adapter/Httperf.html +0 -949
  34. data/doc/classes/Stella/Adapter/Siege.html +0 -1011
  35. data/doc/classes/Stella/CLI.html +0 -914
  36. data/doc/classes/Stella/CLI/Base.html +0 -186
  37. data/doc/classes/Stella/CLI/Language.html +0 -149
  38. data/doc/classes/Stella/CLI/LocalTest.html +0 -268
  39. data/doc/classes/Stella/Command.html +0 -111
  40. data/doc/classes/Stella/Command/Base.html +0 -335
  41. data/doc/classes/Stella/Config.html +0 -292
  42. data/doc/classes/Stella/InvalidArgument.html +0 -242
  43. data/doc/classes/Stella/LocalTest.html +0 -450
  44. data/doc/classes/Stella/Logger.html +0 -548
  45. data/doc/classes/Stella/Response.html +0 -846
  46. data/doc/classes/Stella/Storable.html +0 -928
  47. data/doc/classes/Stella/Test.html +0 -142
  48. data/doc/classes/Stella/Test/DaySummary.html +0 -249
  49. data/doc/classes/Stella/Test/Definition.html +0 -294
  50. data/doc/classes/Stella/Test/Definition/Rampup.html +0 -215
  51. data/doc/classes/Stella/Test/RunSummary.html +0 -315
  52. data/doc/classes/Stella/Test/SummaryBase.html +0 -286
  53. data/doc/classes/Stella/Test/TestSummary.html +0 -200
  54. data/doc/classes/Stella/Text.html +0 -581
  55. data/doc/classes/Stella/Text/Resource.html +0 -289
  56. data/doc/classes/Stella/UnavailableAdapter.html +0 -242
  57. data/doc/classes/Stella/UnknownValue.html +0 -242
  58. data/doc/classes/Stella/UnsupportedLanguage.html +0 -115
  59. data/doc/classes/Stella/Util.html +0 -348
  60. data/doc/classes/TextGraph.html +0 -460
  61. data/doc/classes/TimerUtil.html +0 -431
  62. data/doc/created.rid +0 -1
  63. data/doc/files/LICENSE_txt.html +0 -129
  64. data/doc/files/README_txt.html +0 -209
  65. data/doc/files/lib/stella/adapter/ab_rb.html +0 -101
  66. data/doc/files/lib/stella/adapter/base_rb.html +0 -101
  67. data/doc/files/lib/stella/adapter/httperf_rb.html +0 -101
  68. data/doc/files/lib/stella/adapter/siege_rb.html +0 -101
  69. data/doc/files/lib/stella/cli/base_rb.html +0 -101
  70. data/doc/files/lib/stella/cli/language_rb.html +0 -101
  71. data/doc/files/lib/stella/cli/localtest_rb.html +0 -101
  72. data/doc/files/lib/stella/cli_rb.html +0 -112
  73. data/doc/files/lib/stella/command/base_rb.html +0 -101
  74. data/doc/files/lib/stella/command/localtest_rb.html +0 -101
  75. data/doc/files/lib/stella/logger_rb.html +0 -101
  76. data/doc/files/lib/stella/response_rb.html +0 -101
  77. data/doc/files/lib/stella/storable_rb.html +0 -109
  78. data/doc/files/lib/stella/support_rb.html +0 -101
  79. data/doc/files/lib/stella/test/daysummary_rb.html +0 -101
  80. data/doc/files/lib/stella/test/definition_rb.html +0 -101
  81. data/doc/files/lib/stella/test/runsummary_rb.html +0 -101
  82. data/doc/files/lib/stella/test/summarybase_rb.html +0 -101
  83. data/doc/files/lib/stella/test/testsummary_rb.html +0 -108
  84. data/doc/files/lib/stella/text/resource_rb.html +0 -108
  85. data/doc/files/lib/stella/text_rb.html +0 -108
  86. data/doc/files/lib/stella_rb.html +0 -128
  87. data/doc/files/lib/utils/crypto-key_rb.html +0 -116
  88. data/doc/files/lib/utils/fileutil_rb.html +0 -108
  89. data/doc/files/lib/utils/httputil_rb.html +0 -110
  90. data/doc/files/lib/utils/mathutil_rb.html +0 -101
  91. data/doc/files/lib/utils/textgraph_rb.html +0 -138
  92. data/doc/files/lib/utils/timerutil_rb.html +0 -108
  93. data/doc/fr_class_index.html +0 -66
  94. data/doc/fr_file_index.html +0 -62
  95. data/doc/fr_method_index.html +0 -309
  96. data/doc/index.html +0 -24
  97. data/doc/rdoc-style.css +0 -208
  98. data/lib/stella/test/daysummary.rb +0 -93
  99. data/spec/base.rb +0 -26
  100. data/spec/shell_spec.rb +0 -12
@@ -1,186 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Stella::CLI::Base</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Stella::CLI::Base</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../../files/lib/stella/cli/base_rb.html">
59
- lib/stella/cli/base.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- Object
69
- </td>
70
- </tr>
71
- </table>
72
- </div>
73
- <!-- banner header -->
74
-
75
- <div id="bodyContent">
76
-
77
-
78
-
79
- <div id="contextContent">
80
-
81
- <div id="description">
82
- <p>
83
- <a href="Base.html">Stella::CLI::Base</a>
84
- </p>
85
- <p>
86
- A base case for the command line interface classes. All <a
87
- href="../CLI.html">Stella::CLI</a> classes should be based on this class.
88
- Otherwise great destruction could occur.
89
- </p>
90
-
91
- </div>
92
-
93
-
94
- </div>
95
-
96
- <div id="method-list">
97
- <h3 class="section-bar">Methods</h3>
98
-
99
- <div class="name-list">
100
- <a href="#M000145">new</a>&nbsp;&nbsp;
101
- </div>
102
- </div>
103
-
104
- </div>
105
-
106
-
107
- <!-- if includes -->
108
-
109
- <div id="section">
110
-
111
-
112
-
113
-
114
-
115
- <div id="attribute-list">
116
- <h3 class="section-bar">Attributes</h3>
117
-
118
- <div class="name-list">
119
- <table>
120
- <tr class="top-aligned-row context-row">
121
- <td class="context-item-name">adapter</td>
122
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
123
- <td class="context-item-desc"></td>
124
- </tr>
125
- <tr class="top-aligned-row context-row">
126
- <td class="context-item-name">arguments</td>
127
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
128
- <td class="context-item-desc"></td>
129
- </tr>
130
- <tr class="top-aligned-row context-row">
131
- <td class="context-item-name">stella_options</td>
132
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
133
- <td class="context-item-desc"></td>
134
- </tr>
135
- <tr class="top-aligned-row context-row">
136
- <td class="context-item-name">working_directory</td>
137
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
138
- <td class="context-item-desc"></td>
139
- </tr>
140
- </table>
141
- </div>
142
- </div>
143
-
144
-
145
-
146
- <!-- if method_list -->
147
- <div id="methods">
148
- <h3 class="section-bar">Public Class methods</h3>
149
-
150
- <div id="method-M000145" class="method-detail">
151
- <a name="M000145"></a>
152
-
153
- <div class="method-heading">
154
- <a href="#M000145" class="method-signature">
155
- <span class="method-name">new</span><span class="method-args">(adapter)</span>
156
- </a>
157
- </div>
158
-
159
- <div class="method-description">
160
- <p><a class="source-toggle" href="#"
161
- onclick="toggleCode('M000145-source');return false;">[Source]</a></p>
162
- <div class="method-source-code" id="M000145-source">
163
- <pre>
164
- <span class="ruby-comment cmt"># File lib/stella/cli/base.rb, line 13</span>
165
- 13: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">adapter</span>)
166
- 14: <span class="ruby-ivar">@adapter_name</span> = <span class="ruby-identifier">adapter</span>
167
- 15: <span class="ruby-ivar">@options</span> = <span class="ruby-constant">OpenStruct</span>.<span class="ruby-identifier">new</span>
168
- 16: <span class="ruby-keyword kw">end</span>
169
- </pre>
170
- </div>
171
- </div>
172
- </div>
173
-
174
-
175
- </div>
176
-
177
-
178
- </div>
179
-
180
-
181
- <div id="validator-badges">
182
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
183
- </div>
184
-
185
- </body>
186
- </html>
@@ -1,149 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Stella::CLI::Language</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Stella::CLI::Language</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../../files/lib/stella/cli/language_rb.html">
59
- lib/stella/cli/language.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- <a href="Base.html">
69
- Stella::CLI::Base
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
-
84
-
85
- </div>
86
-
87
- <div id="method-list">
88
- <h3 class="section-bar">Methods</h3>
89
-
90
- <div class="name-list">
91
- <a href="#M000144">run</a>&nbsp;&nbsp;
92
- </div>
93
- </div>
94
-
95
- </div>
96
-
97
-
98
- <!-- if includes -->
99
-
100
- <div id="section">
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
- <!-- if method_list -->
110
- <div id="methods">
111
- <h3 class="section-bar">Public Instance methods</h3>
112
-
113
- <div id="method-M000144" class="method-detail">
114
- <a name="M000144"></a>
115
-
116
- <div class="method-heading">
117
- <a href="#M000144" class="method-signature">
118
- <span class="method-name">run</span><span class="method-args">()</span>
119
- </a>
120
- </div>
121
-
122
- <div class="method-description">
123
- <p><a class="source-toggle" href="#"
124
- onclick="toggleCode('M000144-source');return false;">[Source]</a></p>
125
- <div class="method-source-code" id="M000144-source">
126
- <pre>
127
- <span class="ruby-comment cmt"># File lib/stella/cli/language.rb, line 9</span>
128
- 9: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>
129
- 10: <span class="ruby-identifier">languages</span> = <span class="ruby-constant">Stella</span><span class="ruby-operator">::</span><span class="ruby-constant">TEXT</span>.<span class="ruby-identifier">available_languages</span>
130
- 11: <span class="ruby-identifier">puts</span> <span class="ruby-constant">Stella</span><span class="ruby-operator">::</span><span class="ruby-constant">TEXT</span>.<span class="ruby-identifier">msg</span>(<span class="ruby-identifier">:text_available_languages</span>, <span class="ruby-identifier">languages</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">l</span><span class="ruby-operator">|</span> <span class="ruby-node">&quot;#{l[:language]} &quot;</span> })
131
- 12: <span class="ruby-keyword kw">end</span>
132
- </pre>
133
- </div>
134
- </div>
135
- </div>
136
-
137
-
138
- </div>
139
-
140
-
141
- </div>
142
-
143
-
144
- <div id="validator-badges">
145
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
146
- </div>
147
-
148
- </body>
149
- </html>
@@ -1,268 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Stella::CLI::LocalTest</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Stella::CLI::LocalTest</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../../files/lib/stella/cli/localtest_rb.html">
59
- lib/stella/cli/localtest.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- <a href="Base.html">
69
- Stella::CLI::Base
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
- <div id="description">
84
- <p>
85
- <a href="LocalTest.html">Stella::CLI::LocalTest</a>
86
- </p>
87
- <p>
88
- A wrapper that takes the command line input and makes it appropriate for
89
- calling an instance of <a href="../LocalTest.html">Stella::LocalTest</a>.
90
- Then it calls that instance!
91
- </p>
92
-
93
- </div>
94
-
95
-
96
- </div>
97
-
98
- <div id="method-list">
99
- <h3 class="section-bar">Methods</h3>
100
-
101
- <div class="name-list">
102
- <a href="#M000141">new</a>&nbsp;&nbsp;
103
- <a href="#M000143">process_stella_options</a>&nbsp;&nbsp;
104
- <a href="#M000142">run</a>&nbsp;&nbsp;
105
- </div>
106
- </div>
107
-
108
- </div>
109
-
110
-
111
- <!-- if includes -->
112
-
113
- <div id="section">
114
-
115
-
116
-
117
-
118
-
119
- <div id="attribute-list">
120
- <h3 class="section-bar">Attributes</h3>
121
-
122
- <div class="name-list">
123
- <table>
124
- <tr class="top-aligned-row context-row">
125
- <td class="context-item-name">testdef</td>
126
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
127
- <td class="context-item-desc"></td>
128
- </tr>
129
- </table>
130
- </div>
131
- </div>
132
-
133
-
134
-
135
- <!-- if method_list -->
136
- <div id="methods">
137
- <h3 class="section-bar">Public Class methods</h3>
138
-
139
- <div id="method-M000141" class="method-detail">
140
- <a name="M000141"></a>
141
-
142
- <div class="method-heading">
143
- <a href="#M000141" class="method-signature">
144
- <span class="method-name">new</span><span class="method-args">(adapter)</span>
145
- </a>
146
- </div>
147
-
148
- <div class="method-description">
149
- <p><a class="source-toggle" href="#"
150
- onclick="toggleCode('M000141-source');return false;">[Source]</a></p>
151
- <div class="method-source-code" id="M000141-source">
152
- <pre>
153
- <span class="ruby-comment cmt"># File lib/stella/cli/localtest.rb, line 13</span>
154
- 13: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">adapter</span>)
155
- 14: <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">adapter</span>)
156
- 15: <span class="ruby-ivar">@testdef</span> = <span class="ruby-constant">Stella</span><span class="ruby-operator">::</span><span class="ruby-constant">Test</span><span class="ruby-operator">::</span><span class="ruby-constant">Definition</span>.<span class="ruby-identifier">new</span>
157
- 16:
158
- 17: <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">adapter</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'ab'</span>)
159
- 18: <span class="ruby-ivar">@adapter</span> = <span class="ruby-constant">Stella</span><span class="ruby-operator">::</span><span class="ruby-constant">Adapter</span><span class="ruby-operator">::</span><span class="ruby-constant">ApacheBench</span>.<span class="ruby-identifier">new</span>
160
- 19: <span class="ruby-keyword kw">elsif</span> (<span class="ruby-identifier">adapter</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'siege'</span>)
161
- 20: <span class="ruby-ivar">@adapter</span> = <span class="ruby-constant">Stella</span><span class="ruby-operator">::</span><span class="ruby-constant">Adapter</span><span class="ruby-operator">::</span><span class="ruby-constant">Siege</span>.<span class="ruby-identifier">new</span>
162
- 21: <span class="ruby-keyword kw">elsif</span> (<span class="ruby-identifier">adapter</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'httperf'</span>)
163
- 22: <span class="ruby-ivar">@adapter</span> = <span class="ruby-constant">Stella</span><span class="ruby-operator">::</span><span class="ruby-constant">Adapter</span><span class="ruby-operator">::</span><span class="ruby-constant">Httperf</span>.<span class="ruby-identifier">new</span>
164
- 23: <span class="ruby-keyword kw">else</span>
165
- 24: <span class="ruby-identifier">raise</span> <span class="ruby-constant">UnknownValue</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">adapter</span>)
166
- 25: <span class="ruby-keyword kw">end</span>
167
- 26:
168
- 27: <span class="ruby-ivar">@driver</span> = <span class="ruby-constant">Stella</span><span class="ruby-operator">::</span><span class="ruby-constant">LocalTest</span>.<span class="ruby-identifier">new</span>
169
- 28: <span class="ruby-keyword kw">end</span>
170
- </pre>
171
- </div>
172
- </div>
173
- </div>
174
-
175
- <h3 class="section-bar">Public Instance methods</h3>
176
-
177
- <div id="method-M000143" class="method-detail">
178
- <a name="M000143"></a>
179
-
180
- <div class="method-heading">
181
- <a href="#M000143" class="method-signature">
182
- <span class="method-name">process_stella_options</span><span class="method-args">()</span>
183
- </a>
184
- </div>
185
-
186
- <div class="method-description">
187
- <p>
188
- <a href="LocalTest.html#M000143">process_stella_options</a>
189
- </p>
190
- <p>
191
- Populates @testdef with values from @stella_options
192
- </p>
193
- <p><a class="source-toggle" href="#"
194
- onclick="toggleCode('M000143-source');return false;">[Source]</a></p>
195
- <div class="method-source-code" id="M000143-source">
196
- <pre>
197
- <span class="ruby-comment cmt"># File lib/stella/cli/localtest.rb, line 56</span>
198
- 56: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_stella_options</span>
199
- 57: <span class="ruby-ivar">@testdef</span>.<span class="ruby-identifier">repetitions</span> = <span class="ruby-ivar">@stella_options</span>.<span class="ruby-identifier">testreps</span>
200
- 58: <span class="ruby-ivar">@testdef</span>.<span class="ruby-identifier">sleep</span> = <span class="ruby-ivar">@stella_options</span>.<span class="ruby-identifier">sleep</span>
201
- 59: <span class="ruby-ivar">@testdef</span>.<span class="ruby-identifier">warmup</span> = <span class="ruby-ivar">@stella_options</span>.<span class="ruby-identifier">warmup</span>
202
- 60: <span class="ruby-ivar">@testdef</span>.<span class="ruby-identifier">rampup</span> = <span class="ruby-ivar">@stella_options</span>.<span class="ruby-identifier">rampup</span>
203
- 61: <span class="ruby-ivar">@testdef</span>.<span class="ruby-identifier">agents</span> = <span class="ruby-ivar">@stella_options</span>.<span class="ruby-identifier">agents</span>
204
- 62: <span class="ruby-ivar">@testdef</span>.<span class="ruby-identifier">message</span> = <span class="ruby-ivar">@stella_options</span>.<span class="ruby-identifier">message</span>
205
- 63:
206
- 64:
207
- 65: <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">quiet</span> = <span class="ruby-ivar">@stella_options</span>.<span class="ruby-identifier">quiet</span>
208
- 66: <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">verbose</span> = <span class="ruby-ivar">@stella_options</span>.<span class="ruby-identifier">verbose</span>
209
- 67: <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">format</span> = <span class="ruby-ivar">@stella_options</span>.<span class="ruby-identifier">format</span> <span class="ruby-operator">||</span> <span class="ruby-value str">'yaml'</span>
210
- 68:
211
- 69: <span class="ruby-keyword kw">end</span>
212
- </pre>
213
- </div>
214
- </div>
215
- </div>
216
-
217
- <div id="method-M000142" class="method-detail">
218
- <a name="M000142"></a>
219
-
220
- <div class="method-heading">
221
- <a href="#M000142" class="method-signature">
222
- <span class="method-name">run</span><span class="method-args">()</span>
223
- </a>
224
- </div>
225
-
226
- <div class="method-description">
227
- <p><a class="source-toggle" href="#"
228
- onclick="toggleCode('M000142-source');return false;">[Source]</a></p>
229
- <div class="method-source-code" id="M000142-source">
230
- <pre>
231
- <span class="ruby-comment cmt"># File lib/stella/cli/localtest.rb, line 31</span>
232
- 31: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>
233
- 32: <span class="ruby-identifier">process_stella_options</span>
234
- 33:
235
- 34: <span class="ruby-identifier">options</span> = <span class="ruby-ivar">@adapter</span>.<span class="ruby-identifier">process_options</span>(<span class="ruby-ivar">@arguments</span>)
236
- 35:
237
- 36: <span class="ruby-ivar">@adapter</span>.<span class="ruby-identifier">options</span> = <span class="ruby-identifier">options</span>
238
- 37: <span class="ruby-ivar">@adapter</span>.<span class="ruby-identifier">arguments</span> = <span class="ruby-ivar">@arguments</span>
239
- 38:
240
- 39: <span class="ruby-ivar">@testdef</span>.<span class="ruby-identifier">vusers</span> = <span class="ruby-ivar">@adapter</span>.<span class="ruby-identifier">vusers</span>
241
- 40: <span class="ruby-ivar">@testdef</span>.<span class="ruby-identifier">requests</span> = <span class="ruby-ivar">@adapter</span>.<span class="ruby-identifier">requests</span>
242
- 41:
243
- 42: <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">adapter</span> = <span class="ruby-ivar">@adapter</span>
244
- 43: <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">testdef</span> = <span class="ruby-ivar">@testdef</span>
245
- 44:
246
- 45: <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">working_directory</span> = <span class="ruby-ivar">@working_directory</span>
247
- 46:
248
- 47: <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">run</span>
249
- 48:
250
- 49: <span class="ruby-keyword kw">end</span>
251
- </pre>
252
- </div>
253
- </div>
254
- </div>
255
-
256
-
257
- </div>
258
-
259
-
260
- </div>
261
-
262
-
263
- <div id="validator-badges">
264
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
265
- </div>
266
-
267
- </body>
268
- </html>