stella 0.3.2 → 0.5.1
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/README.txt +24 -84
- data/Rakefile +1 -6
- data/doc/classes/Crypto.html +248 -0
- data/doc/classes/Crypto/Key.html +308 -0
- data/doc/classes/Enumerable.html +309 -0
- data/doc/classes/FileUtil.html +310 -0
- data/doc/classes/HTTPUtil.html +530 -0
- data/doc/classes/MathUtil.html +210 -0
- data/doc/classes/Stella.html +238 -0
- data/doc/classes/Stella/Adapter.html +127 -0
- data/doc/classes/Stella/Adapter/ApacheBench.html +1076 -0
- data/doc/classes/Stella/Adapter/Base.html +432 -0
- data/doc/classes/Stella/Adapter/CommandNotReady.html +146 -0
- data/doc/classes/Stella/Adapter/Httperf.html +949 -0
- data/doc/classes/Stella/Adapter/Siege.html +1011 -0
- data/doc/classes/Stella/CLI.html +914 -0
- data/doc/classes/Stella/CLI/Base.html +186 -0
- data/doc/classes/Stella/CLI/Language.html +149 -0
- data/doc/classes/Stella/CLI/LocalTest.html +268 -0
- data/doc/classes/Stella/Command.html +111 -0
- data/doc/classes/Stella/Command/Base.html +335 -0
- data/doc/classes/Stella/Config.html +292 -0
- data/doc/classes/Stella/InvalidArgument.html +242 -0
- data/doc/classes/Stella/LocalTest.html +450 -0
- data/doc/classes/Stella/Logger.html +548 -0
- data/doc/classes/Stella/Response.html +846 -0
- data/doc/classes/Stella/Storable.html +928 -0
- data/doc/classes/Stella/Test.html +142 -0
- data/doc/classes/Stella/Test/DaySummary.html +249 -0
- data/doc/classes/Stella/Test/Definition.html +294 -0
- data/doc/classes/Stella/Test/Definition/Rampup.html +215 -0
- data/doc/classes/Stella/Test/RunSummary.html +315 -0
- data/doc/classes/Stella/Test/SummaryBase.html +286 -0
- data/doc/classes/Stella/Test/TestSummary.html +200 -0
- data/doc/classes/Stella/Text.html +581 -0
- data/doc/classes/Stella/Text/Resource.html +289 -0
- data/doc/classes/Stella/UnavailableAdapter.html +242 -0
- data/doc/classes/Stella/UnknownValue.html +242 -0
- data/doc/classes/Stella/UnsupportedLanguage.html +115 -0
- data/doc/classes/Stella/Util.html +348 -0
- data/doc/classes/TextGraph.html +460 -0
- data/doc/classes/TimerUtil.html +431 -0
- data/doc/created.rid +1 -0
- data/doc/files/LICENSE_txt.html +129 -0
- data/doc/files/README_txt.html +209 -0
- data/doc/files/lib/stella/adapter/ab_rb.html +101 -0
- data/doc/files/lib/stella/adapter/base_rb.html +101 -0
- data/doc/files/lib/stella/adapter/httperf_rb.html +101 -0
- data/doc/files/lib/stella/adapter/siege_rb.html +101 -0
- data/doc/files/lib/stella/cli/base_rb.html +101 -0
- data/doc/files/lib/stella/cli/language_rb.html +101 -0
- data/doc/files/lib/stella/cli/localtest_rb.html +101 -0
- data/doc/files/lib/stella/cli_rb.html +112 -0
- data/doc/files/lib/stella/command/base_rb.html +101 -0
- data/doc/files/lib/stella/command/localtest_rb.html +101 -0
- data/doc/files/lib/stella/logger_rb.html +101 -0
- data/doc/files/lib/stella/response_rb.html +101 -0
- data/doc/files/lib/stella/storable_rb.html +109 -0
- data/doc/files/lib/stella/support_rb.html +101 -0
- data/doc/files/lib/stella/test/daysummary_rb.html +101 -0
- data/doc/files/lib/stella/test/definition_rb.html +101 -0
- data/doc/files/lib/stella/test/runsummary_rb.html +101 -0
- data/doc/files/lib/stella/test/summarybase_rb.html +101 -0
- data/doc/files/lib/stella/test/testsummary_rb.html +108 -0
- data/doc/files/lib/stella/text/resource_rb.html +108 -0
- data/doc/files/lib/stella/text_rb.html +108 -0
- data/doc/files/lib/stella_rb.html +128 -0
- data/doc/files/lib/utils/crypto-key_rb.html +116 -0
- data/doc/files/lib/utils/fileutil_rb.html +108 -0
- data/doc/files/lib/utils/httputil_rb.html +110 -0
- data/doc/files/lib/utils/mathutil_rb.html +101 -0
- data/doc/files/lib/utils/textgraph_rb.html +138 -0
- data/doc/files/lib/utils/timerutil_rb.html +108 -0
- data/doc/fr_class_index.html +66 -0
- data/doc/fr_file_index.html +62 -0
- data/doc/fr_method_index.html +309 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/lib/stella.rb +5 -6
- data/lib/stella/adapter/ab.rb +4 -31
- data/lib/stella/adapter/base.rb +1 -15
- data/lib/stella/adapter/httperf.rb +4 -35
- data/lib/stella/adapter/siege.rb +29 -51
- data/lib/stella/cli.rb +22 -45
- data/lib/stella/cli/language.rb +0 -2
- data/lib/stella/cli/localtest.rb +0 -5
- data/lib/stella/command/base.rb +1 -1
- data/lib/stella/command/localtest.rb +68 -84
- data/lib/stella/test/daysummary.rb +93 -0
- data/lib/stella/test/definition.rb +5 -10
- data/lib/stella/test/{run/summary.rb → runsummary.rb} +6 -4
- data/lib/stella/test/{base.rb → summarybase.rb} +7 -3
- data/lib/stella/test/{summary.rb → testsummary.rb} +29 -27
- data/lib/utils/mathutil.rb +34 -36
- data/spec/base.rb +26 -0
- data/spec/shell_spec.rb +12 -0
- data/support/text/en.yaml +1 -7
- metadata +102 -8
- data/lib/stella/cli/agents.rb +0 -73
- data/lib/utils/escape.rb +0 -302
|
@@ -0,0 +1,111 @@
|
|
|
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>Module: Stella::Command</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>Module</strong></td>
|
|
53
|
+
<td class="class-name-in-header">Stella::Command</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr class="top-aligned-row">
|
|
56
|
+
<td><strong>In:</strong></td>
|
|
57
|
+
<td>
|
|
58
|
+
<a href="../../files/lib/stella/command/base_rb.html">
|
|
59
|
+
lib/stella/command/base.rb
|
|
60
|
+
</a>
|
|
61
|
+
<br />
|
|
62
|
+
</td>
|
|
63
|
+
</tr>
|
|
64
|
+
|
|
65
|
+
</table>
|
|
66
|
+
</div>
|
|
67
|
+
<!-- banner header -->
|
|
68
|
+
|
|
69
|
+
<div id="bodyContent">
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
<div id="contextContent">
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
<!-- if includes -->
|
|
84
|
+
|
|
85
|
+
<div id="section">
|
|
86
|
+
|
|
87
|
+
<div id="class-list">
|
|
88
|
+
<h3 class="section-bar">Classes and Modules</h3>
|
|
89
|
+
|
|
90
|
+
Class <a href="Command/Base.html" class="link">Stella::Command::Base</a><br />
|
|
91
|
+
|
|
92
|
+
</div>
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
<!-- if method_list -->
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
<div id="validator-badges">
|
|
107
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
</body>
|
|
111
|
+
</html>
|
|
@@ -0,0 +1,335 @@
|
|
|
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::Command::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::Command::Base</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr class="top-aligned-row">
|
|
56
|
+
<td><strong>In:</strong></td>
|
|
57
|
+
<td>
|
|
58
|
+
<a href="../../../files/lib/stella/command/base_rb.html">
|
|
59
|
+
lib/stella/command/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
|
+
|
|
82
|
+
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
<div id="method-list">
|
|
86
|
+
<h3 class="section-bar">Methods</h3>
|
|
87
|
+
|
|
88
|
+
<div class="name-list">
|
|
89
|
+
<a href="#M000024">find_agent</a>
|
|
90
|
+
<a href="#M000022">new</a>
|
|
91
|
+
<a href="#M000023">run_sleeper</a>
|
|
92
|
+
<a href="#M000025">strand</a>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
|
|
96
|
+
</div>
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
<!-- if includes -->
|
|
100
|
+
|
|
101
|
+
<div id="section">
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
<div id="constants-list">
|
|
105
|
+
<h3 class="section-bar">Constants</h3>
|
|
106
|
+
|
|
107
|
+
<div class="name-list">
|
|
108
|
+
<table summary="Constants">
|
|
109
|
+
<tr class="top-aligned-row context-row">
|
|
110
|
+
<td class="context-item-name">BrowserNicks</td>
|
|
111
|
+
<td>=</td>
|
|
112
|
+
<td class="context-item-value">{ 'ff' => 'firefox', 'ie' => 'internetexplorer'</td>
|
|
113
|
+
</tr>
|
|
114
|
+
<tr class="top-aligned-row context-row">
|
|
115
|
+
<td class="context-item-name">OperatingSystemNicks</td>
|
|
116
|
+
<td>=</td>
|
|
117
|
+
<td class="context-item-value">{ 'win' => 'windows', 'lin' => 'linux', 'osx' => 'osx', 'freebsd' => 'bsd', 'netbsd' => 'bsd', 'openbsd' => 'bsd'</td>
|
|
118
|
+
</tr>
|
|
119
|
+
<tr class="top-aligned-row context-row">
|
|
120
|
+
<td class="context-item-name">IMPLEMENTATIONS</td>
|
|
121
|
+
<td>=</td>
|
|
122
|
+
<td class="context-item-value">[ [/darwin/i, :unix, :macosx ]</td>
|
|
123
|
+
<td width="3em"> </td>
|
|
124
|
+
<td class="context-item-desc">
|
|
125
|
+
TODO: See EC2::Platform for example to improve/generalize platform
|
|
126
|
+
discovery. We‘ll need this for monitoring.
|
|
127
|
+
|
|
128
|
+
</td>
|
|
129
|
+
</tr>
|
|
130
|
+
<tr class="top-aligned-row context-row">
|
|
131
|
+
<td class="context-item-name">ARCHITECTURES</td>
|
|
132
|
+
<td>=</td>
|
|
133
|
+
<td class="context-item-value">[ [/(i\d86)/i, :i386 ]</td>
|
|
134
|
+
</tr>
|
|
135
|
+
</table>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
<div id="attribute-list">
|
|
142
|
+
<h3 class="section-bar">Attributes</h3>
|
|
143
|
+
|
|
144
|
+
<div class="name-list">
|
|
145
|
+
<table>
|
|
146
|
+
<tr class="top-aligned-row context-row">
|
|
147
|
+
<td class="context-item-name">shortname</td>
|
|
148
|
+
<td class="context-item-value"> [RW] </td>
|
|
149
|
+
<td class="context-item-desc">
|
|
150
|
+
When using <a href="../CLI.html">Stella::CLI</a> this will contain the
|
|
151
|
+
string used to call this command i.e. ab, siege, help, etc…
|
|
152
|
+
|
|
153
|
+
</td>
|
|
154
|
+
</tr>
|
|
155
|
+
</table>
|
|
156
|
+
</div>
|
|
157
|
+
</div>
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
<!-- if method_list -->
|
|
162
|
+
<div id="methods">
|
|
163
|
+
<h3 class="section-bar">Public Class methods</h3>
|
|
164
|
+
|
|
165
|
+
<div id="method-M000022" class="method-detail">
|
|
166
|
+
<a name="M000022"></a>
|
|
167
|
+
|
|
168
|
+
<div class="method-heading">
|
|
169
|
+
<a href="#M000022" class="method-signature">
|
|
170
|
+
<span class="method-name">new</span><span class="method-args">()</span>
|
|
171
|
+
</a>
|
|
172
|
+
</div>
|
|
173
|
+
|
|
174
|
+
<div class="method-description">
|
|
175
|
+
<p><a class="source-toggle" href="#"
|
|
176
|
+
onclick="toggleCode('M000022-source');return false;">[Source]</a></p>
|
|
177
|
+
<div class="method-source-code" id="M000022-source">
|
|
178
|
+
<pre>
|
|
179
|
+
<span class="ruby-comment cmt"># File lib/stella/command/base.rb, line 34</span>
|
|
180
|
+
34: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>()
|
|
181
|
+
35:
|
|
182
|
+
36: <span class="ruby-comment cmt">#agent = find_agent(*expand_str(v)) </span>
|
|
183
|
+
37: <span class="ruby-comment cmt">#@logger.info(:cli_print_agent, agent) if @options.verbose >= 1</span>
|
|
184
|
+
38:
|
|
185
|
+
39: <span class="ruby-keyword kw">end</span>
|
|
186
|
+
</pre>
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
</div>
|
|
190
|
+
|
|
191
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
|
192
|
+
|
|
193
|
+
<div id="method-M000024" class="method-detail">
|
|
194
|
+
<a name="M000024"></a>
|
|
195
|
+
|
|
196
|
+
<div class="method-heading">
|
|
197
|
+
<a href="#M000024" class="method-signature">
|
|
198
|
+
<span class="method-name">find_agent</span><span class="method-args">(name,second=nil,third=nil)</span>
|
|
199
|
+
</a>
|
|
200
|
+
</div>
|
|
201
|
+
|
|
202
|
+
<div class="method-description">
|
|
203
|
+
<p>
|
|
204
|
+
<a href="Base.html#M000024">find_agent</a>
|
|
205
|
+
</p>
|
|
206
|
+
<p>
|
|
207
|
+
Takes an input string which can be either a shortname or a complete user
|
|
208
|
+
agent string. If the string matches the shortname format, it will select an
|
|
209
|
+
agent string from useragents.txt based on the shortname. Shortname takes
|
|
210
|
+
the following format: browser-version-os. Examples: ff-3-linux, ie-5,
|
|
211
|
+
opera-10-win, chrome-0.2-osx, random If os doesn‘t match, it will
|
|
212
|
+
look for the browser and version. If it can‘t find the version it
|
|
213
|
+
will look for the browser and apply the version given. If browser
|
|
214
|
+
doesn‘t match a known browser, it assumes the string is a complete
|
|
215
|
+
user agent and simply returns that value.
|
|
216
|
+
</p>
|
|
217
|
+
<p><a class="source-toggle" href="#"
|
|
218
|
+
onclick="toggleCode('M000024-source');return false;">[Source]</a></p>
|
|
219
|
+
<div class="method-source-code" id="M000024-source">
|
|
220
|
+
<pre>
|
|
221
|
+
<span class="ruby-comment cmt"># File lib/stella/command/base.rb, line 61</span>
|
|
222
|
+
61: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_agent</span>(<span class="ruby-identifier">name</span>,<span class="ruby-identifier">second</span>=<span class="ruby-keyword kw">nil</span>,<span class="ruby-identifier">third</span>=<span class="ruby-keyword kw">nil</span>)
|
|
223
|
+
62: <span class="ruby-identifier">name</span> = (<span class="ruby-constant">BrowserNicks</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">name</span>)) <span class="ruby-operator">?</span> <span class="ruby-constant">BrowserNicks</span>[<span class="ruby-identifier">name</span>] <span class="ruby-operator">:</span> <span class="ruby-identifier">name</span>
|
|
224
|
+
63: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">name</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@available_agents</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">name</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"random"</span>
|
|
225
|
+
64:
|
|
226
|
+
65: <span class="ruby-identifier">index</span> = <span class="ruby-identifier">name</span>
|
|
227
|
+
66: <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">second</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">third</span>) <span class="ruby-comment cmt"># i.e. opera-9-osx</span>
|
|
228
|
+
67: <span class="ruby-identifier">os</span> = (<span class="ruby-constant">OperatingSystemNicks</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">third</span>)) <span class="ruby-operator">?</span> <span class="ruby-constant">OperatingSystemNicks</span>[<span class="ruby-identifier">third</span>] <span class="ruby-operator">:</span> <span class="ruby-identifier">third</span>
|
|
229
|
+
68: <span class="ruby-identifier">index</span> = <span class="ruby-node">"#{name}-#{second}-#{os}"</span>
|
|
230
|
+
69: <span class="ruby-keyword kw">elsif</span>(<span class="ruby-identifier">second</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">second</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>) <span class="ruby-comment cmt"># i.e. opera-9</span>
|
|
231
|
+
70: <span class="ruby-identifier">index</span> = <span class="ruby-node">"#{name}-#{second}"</span>
|
|
232
|
+
71: <span class="ruby-keyword kw">elsif</span>(<span class="ruby-identifier">second</span>) <span class="ruby-comment cmt"># i.e. opera-osx</span>
|
|
233
|
+
72: <span class="ruby-identifier">os</span> = (<span class="ruby-constant">OperatingSystemNicks</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">second</span>)) <span class="ruby-operator">?</span> <span class="ruby-constant">OperatingSystemNicks</span>[<span class="ruby-identifier">second</span>] <span class="ruby-operator">:</span> <span class="ruby-identifier">second</span>
|
|
234
|
+
73: <span class="ruby-identifier">index</span> = <span class="ruby-node">"#{name}-#{os}"</span>
|
|
235
|
+
74: <span class="ruby-keyword kw">elsif</span>(<span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"random"</span>)
|
|
236
|
+
75: <span class="ruby-identifier">index</span> = <span class="ruby-ivar">@available_agents</span>.<span class="ruby-identifier">keys</span>[ <span class="ruby-identifier">rand</span>(<span class="ruby-ivar">@available_agents</span>.<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">size</span>) ]
|
|
237
|
+
76: <span class="ruby-keyword kw">end</span>
|
|
238
|
+
77:
|
|
239
|
+
78: <span class="ruby-comment cmt"># Attempt to find a pool of user agents that match the supplied index</span>
|
|
240
|
+
79: <span class="ruby-identifier">ua_pool</span> = <span class="ruby-ivar">@available_agents</span>[<span class="ruby-identifier">index</span>]
|
|
241
|
+
80:
|
|
242
|
+
81: <span class="ruby-comment cmt"># In the event we don't find an agent above (which will only happen</span>
|
|
243
|
+
82: <span class="ruby-comment cmt"># when the user provided a version), we'll take a random agent for </span>
|
|
244
|
+
83: <span class="ruby-comment cmt"># the same browser and apply the version supplied by the user. We </span>
|
|
245
|
+
84: <span class="ruby-comment cmt"># create the index using just the major version number so if the user</span>
|
|
246
|
+
85: <span class="ruby-comment cmt"># supplies a specific verswion number, they will always end up here.</span>
|
|
247
|
+
86: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">ua_pool</span>
|
|
248
|
+
87: <span class="ruby-identifier">os</span> = (<span class="ruby-constant">OperatingSystemNicks</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">third</span>)) <span class="ruby-operator">?</span> <span class="ruby-constant">OperatingSystemNicks</span>[<span class="ruby-identifier">third</span>] <span class="ruby-operator">:</span> <span class="ruby-identifier">third</span>
|
|
249
|
+
88: <span class="ruby-identifier">index</span> = (<span class="ruby-identifier">os</span>) <span class="ruby-operator">?</span> <span class="ruby-node">"#{name}-#{os}"</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">name</span>
|
|
250
|
+
89: <span class="ruby-identifier">ua_tmp</span> = <span class="ruby-ivar">@available_agents</span>[<span class="ruby-identifier">index</span>][ <span class="ruby-identifier">rand</span>(<span class="ruby-ivar">@available_agents</span>[<span class="ruby-identifier">index</span>].<span class="ruby-identifier">size</span>) ]
|
|
251
|
+
90: <span class="ruby-identifier">ua_tmp</span>.<span class="ruby-identifier">version</span> = <span class="ruby-identifier">second</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">second</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
|
252
|
+
91: <span class="ruby-identifier">ua_pool</span> = [<span class="ruby-identifier">ua_tmp</span>]
|
|
253
|
+
92: <span class="ruby-keyword kw">end</span>
|
|
254
|
+
93:
|
|
255
|
+
94: <span class="ruby-identifier">ua</span> = <span class="ruby-identifier">ua_pool</span>[ <span class="ruby-identifier">rand</span>(<span class="ruby-identifier">ua_pool</span>.<span class="ruby-identifier">size</span>) ]
|
|
256
|
+
95:
|
|
257
|
+
96: <span class="ruby-identifier">ua</span>.<span class="ruby-identifier">to_s</span>
|
|
258
|
+
97:
|
|
259
|
+
98: <span class="ruby-keyword kw">end</span>
|
|
260
|
+
</pre>
|
|
261
|
+
</div>
|
|
262
|
+
</div>
|
|
263
|
+
</div>
|
|
264
|
+
|
|
265
|
+
<div id="method-M000023" class="method-detail">
|
|
266
|
+
<a name="M000023"></a>
|
|
267
|
+
|
|
268
|
+
<div class="method-heading">
|
|
269
|
+
<a href="#M000023" class="method-signature">
|
|
270
|
+
<span class="method-name">run_sleeper</span><span class="method-args">(duration)</span>
|
|
271
|
+
</a>
|
|
272
|
+
</div>
|
|
273
|
+
|
|
274
|
+
<div class="method-description">
|
|
275
|
+
<p><a class="source-toggle" href="#"
|
|
276
|
+
onclick="toggleCode('M000023-source');return false;">[Source]</a></p>
|
|
277
|
+
<div class="method-source-code" id="M000023-source">
|
|
278
|
+
<pre>
|
|
279
|
+
<span class="ruby-comment cmt"># File lib/stella/command/base.rb, line 41</span>
|
|
280
|
+
41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_sleeper</span>(<span class="ruby-identifier">duration</span>)
|
|
281
|
+
42: <span class="ruby-identifier">remainder</span> = <span class="ruby-identifier">duration</span> <span class="ruby-operator">%</span> <span class="ruby-value">1</span>
|
|
282
|
+
43: <span class="ruby-identifier">duration</span>.<span class="ruby-identifier">to_i</span>.<span class="ruby-identifier">times</span> {
|
|
283
|
+
44: <span class="ruby-constant">Stella</span><span class="ruby-operator">::</span><span class="ruby-constant">LOGGER</span>.<span class="ruby-identifier">info_print</span>(<span class="ruby-value str">'.'</span>)
|
|
284
|
+
45: <span class="ruby-identifier">sleep</span> <span class="ruby-value">1</span>
|
|
285
|
+
46: }
|
|
286
|
+
47: <span class="ruby-identifier">sleep</span> <span class="ruby-identifier">remainder</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">remainder</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
|
287
|
+
48: <span class="ruby-keyword kw">end</span>
|
|
288
|
+
</pre>
|
|
289
|
+
</div>
|
|
290
|
+
</div>
|
|
291
|
+
</div>
|
|
292
|
+
|
|
293
|
+
<div id="method-M000025" class="method-detail">
|
|
294
|
+
<a name="M000025"></a>
|
|
295
|
+
|
|
296
|
+
<div class="method-heading">
|
|
297
|
+
<a href="#M000025" class="method-signature">
|
|
298
|
+
<span class="method-name">strand</span><span class="method-args">( len )</span>
|
|
299
|
+
</a>
|
|
300
|
+
</div>
|
|
301
|
+
|
|
302
|
+
<div class="method-description">
|
|
303
|
+
<p>
|
|
304
|
+
Generates a string of random alphanumeric characters These are used as IDs
|
|
305
|
+
throughout the system
|
|
306
|
+
</p>
|
|
307
|
+
<p><a class="source-toggle" href="#"
|
|
308
|
+
onclick="toggleCode('M000025-source');return false;">[Source]</a></p>
|
|
309
|
+
<div class="method-source-code" id="M000025-source">
|
|
310
|
+
<pre>
|
|
311
|
+
<span class="ruby-comment cmt"># File lib/stella/command/base.rb, line 104</span>
|
|
312
|
+
104: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">strand</span>( <span class="ruby-identifier">len</span> )
|
|
313
|
+
105: <span class="ruby-identifier">chars</span> = (<span class="ruby-value str">"a"</span><span class="ruby-operator">..</span><span class="ruby-value str">"z"</span>).<span class="ruby-identifier">to_a</span> <span class="ruby-operator">+</span> (<span class="ruby-value str">"0"</span><span class="ruby-operator">..</span><span class="ruby-value str">"9"</span>).<span class="ruby-identifier">to_a</span>
|
|
314
|
+
106: <span class="ruby-identifier">newpass</span> = <span class="ruby-value str">""</span>
|
|
315
|
+
107: <span class="ruby-value">1</span>.<span class="ruby-identifier">upto</span>(<span class="ruby-identifier">len</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-identifier">newpass</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">chars</span>[<span class="ruby-identifier">rand</span>(<span class="ruby-identifier">chars</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>)] }
|
|
316
|
+
108: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">newpass</span>
|
|
317
|
+
109: <span class="ruby-keyword kw">end</span>
|
|
318
|
+
</pre>
|
|
319
|
+
</div>
|
|
320
|
+
</div>
|
|
321
|
+
</div>
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
</div>
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
</div>
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
<div id="validator-badges">
|
|
331
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
332
|
+
</div>
|
|
333
|
+
|
|
334
|
+
</body>
|
|
335
|
+
</html>
|
|
@@ -0,0 +1,292 @@
|
|
|
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::Config</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::Config</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr class="top-aligned-row">
|
|
56
|
+
<td><strong>In:</strong></td>
|
|
57
|
+
<td>
|
|
58
|
+
<a href="../../files/lib/stella/cli_rb.html">
|
|
59
|
+
lib/stella/cli.rb
|
|
60
|
+
</a>
|
|
61
|
+
<br />
|
|
62
|
+
<a href="../../files/lib/stella/cli_rb.html">
|
|
63
|
+
lib/stella/cli.rb
|
|
64
|
+
</a>
|
|
65
|
+
<br />
|
|
66
|
+
</td>
|
|
67
|
+
</tr>
|
|
68
|
+
|
|
69
|
+
<tr class="top-aligned-row">
|
|
70
|
+
<td><strong>Parent:</strong></td>
|
|
71
|
+
<td>
|
|
72
|
+
<a href="Storable.html">
|
|
73
|
+
Storable
|
|
74
|
+
</a>
|
|
75
|
+
</td>
|
|
76
|
+
</tr>
|
|
77
|
+
</table>
|
|
78
|
+
</div>
|
|
79
|
+
<!-- banner header -->
|
|
80
|
+
|
|
81
|
+
<div id="bodyContent">
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
<div id="contextContent">
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
</div>
|
|
90
|
+
|
|
91
|
+
<div id="method-list">
|
|
92
|
+
<h3 class="section-bar">Methods</h3>
|
|
93
|
+
|
|
94
|
+
<div class="name-list">
|
|
95
|
+
<a href="#M000198">new</a>
|
|
96
|
+
<a href="#M000200">new</a>
|
|
97
|
+
<a href="#M000199">working_directory</a>
|
|
98
|
+
<a href="#M000201">working_directory</a>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
<!-- if includes -->
|
|
106
|
+
|
|
107
|
+
<div id="section">
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
<div id="constants-list">
|
|
111
|
+
<h3 class="section-bar">Constants</h3>
|
|
112
|
+
|
|
113
|
+
<div class="name-list">
|
|
114
|
+
<table summary="Constants">
|
|
115
|
+
<tr class="top-aligned-row context-row">
|
|
116
|
+
<td class="context-item-name">DEFAULT_HOME</td>
|
|
117
|
+
<td>=</td>
|
|
118
|
+
<td class="context-item-value">File.join(ENV['HOME'], '.stella').freeze unless defined? DEFAULT_HOME</td>
|
|
119
|
+
</tr>
|
|
120
|
+
<tr class="top-aligned-row context-row">
|
|
121
|
+
<td class="context-item-name">DEFAULT_DATA_HOME</td>
|
|
122
|
+
<td>=</td>
|
|
123
|
+
<td class="context-item-value">File.join(Dir.getwd, 'stella').freeze unless defined? DEFAULT_DATA_HOME</td>
|
|
124
|
+
</tr>
|
|
125
|
+
<tr class="top-aligned-row context-row">
|
|
126
|
+
<td class="context-item-name">DEFAULT_HOME</td>
|
|
127
|
+
<td>=</td>
|
|
128
|
+
<td class="context-item-value">File.join(ENV['HOME'], '.stella').freeze unless defined? DEFAULT_HOME</td>
|
|
129
|
+
</tr>
|
|
130
|
+
<tr class="top-aligned-row context-row">
|
|
131
|
+
<td class="context-item-name">DEFAULT_DATA_HOME</td>
|
|
132
|
+
<td>=</td>
|
|
133
|
+
<td class="context-item-value">File.join(Dir.getwd, 'stella').freeze unless defined? DEFAULT_DATA_HOME</td>
|
|
134
|
+
</tr>
|
|
135
|
+
</table>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
<div id="attribute-list">
|
|
142
|
+
<h3 class="section-bar">Attributes</h3>
|
|
143
|
+
|
|
144
|
+
<div class="name-list">
|
|
145
|
+
<table>
|
|
146
|
+
<tr class="top-aligned-row context-row">
|
|
147
|
+
<td class="context-item-name">agents</td>
|
|
148
|
+
<td class="context-item-value"> [RW] </td>
|
|
149
|
+
<td class="context-item-desc"></td>
|
|
150
|
+
</tr>
|
|
151
|
+
<tr class="top-aligned-row context-row">
|
|
152
|
+
<td class="context-item-name">agents</td>
|
|
153
|
+
<td class="context-item-value"> [RW] </td>
|
|
154
|
+
<td class="context-item-desc"></td>
|
|
155
|
+
</tr>
|
|
156
|
+
<tr class="top-aligned-row context-row">
|
|
157
|
+
<td class="context-item-name">conf_path</td>
|
|
158
|
+
<td class="context-item-value"> [RW] </td>
|
|
159
|
+
<td class="context-item-desc"></td>
|
|
160
|
+
</tr>
|
|
161
|
+
<tr class="top-aligned-row context-row">
|
|
162
|
+
<td class="context-item-name">conf_path</td>
|
|
163
|
+
<td class="context-item-value"> [RW] </td>
|
|
164
|
+
<td class="context-item-desc"></td>
|
|
165
|
+
</tr>
|
|
166
|
+
<tr class="top-aligned-row context-row">
|
|
167
|
+
<td class="context-item-name">data_path</td>
|
|
168
|
+
<td class="context-item-value"> [RW] </td>
|
|
169
|
+
<td class="context-item-desc"></td>
|
|
170
|
+
</tr>
|
|
171
|
+
<tr class="top-aligned-row context-row">
|
|
172
|
+
<td class="context-item-name">data_path</td>
|
|
173
|
+
<td class="context-item-value"> [RW] </td>
|
|
174
|
+
<td class="context-item-desc"></td>
|
|
175
|
+
</tr>
|
|
176
|
+
</table>
|
|
177
|
+
</div>
|
|
178
|
+
</div>
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
<!-- if method_list -->
|
|
183
|
+
<div id="methods">
|
|
184
|
+
<h3 class="section-bar">Public Class methods</h3>
|
|
185
|
+
|
|
186
|
+
<div id="method-M000198" class="method-detail">
|
|
187
|
+
<a name="M000198"></a>
|
|
188
|
+
|
|
189
|
+
<div class="method-heading">
|
|
190
|
+
<a href="#M000198" class="method-signature">
|
|
191
|
+
<span class="method-name">new</span><span class="method-args">(args={:conf_path => DEFAULT_HOME})</span>
|
|
192
|
+
</a>
|
|
193
|
+
</div>
|
|
194
|
+
|
|
195
|
+
<div class="method-description">
|
|
196
|
+
<p><a class="source-toggle" href="#"
|
|
197
|
+
onclick="toggleCode('M000198-source');return false;">[Source]</a></p>
|
|
198
|
+
<div class="method-source-code" id="M000198-source">
|
|
199
|
+
<pre>
|
|
200
|
+
<span class="ruby-comment cmt"># File lib/stella/cli.rb, line 19</span>
|
|
201
|
+
19: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">args</span>={<span class="ruby-identifier">:conf_path</span> =<span class="ruby-operator">></span> <span class="ruby-constant">DEFAULT_HOME</span>})
|
|
202
|
+
20:
|
|
203
|
+
21: <span class="ruby-keyword kw">end</span>
|
|
204
|
+
</pre>
|
|
205
|
+
</div>
|
|
206
|
+
</div>
|
|
207
|
+
</div>
|
|
208
|
+
|
|
209
|
+
<div id="method-M000200" class="method-detail">
|
|
210
|
+
<a name="M000200"></a>
|
|
211
|
+
|
|
212
|
+
<div class="method-heading">
|
|
213
|
+
<a href="#M000200" class="method-signature">
|
|
214
|
+
<span class="method-name">new</span><span class="method-args">(args={:conf_path => DEFAULT_HOME})</span>
|
|
215
|
+
</a>
|
|
216
|
+
</div>
|
|
217
|
+
|
|
218
|
+
<div class="method-description">
|
|
219
|
+
<p><a class="source-toggle" href="#"
|
|
220
|
+
onclick="toggleCode('M000200-source');return false;">[Source]</a></p>
|
|
221
|
+
<div class="method-source-code" id="M000200-source">
|
|
222
|
+
<pre>
|
|
223
|
+
<span class="ruby-comment cmt"># File lib/stella/cli.rb, line 19</span>
|
|
224
|
+
19: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">args</span>={<span class="ruby-identifier">:conf_path</span> =<span class="ruby-operator">></span> <span class="ruby-constant">DEFAULT_HOME</span>})
|
|
225
|
+
20:
|
|
226
|
+
21: <span class="ruby-keyword kw">end</span>
|
|
227
|
+
</pre>
|
|
228
|
+
</div>
|
|
229
|
+
</div>
|
|
230
|
+
</div>
|
|
231
|
+
|
|
232
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
|
233
|
+
|
|
234
|
+
<div id="method-M000199" class="method-detail">
|
|
235
|
+
<a name="M000199"></a>
|
|
236
|
+
|
|
237
|
+
<div class="method-heading">
|
|
238
|
+
<a href="#M000199" class="method-signature">
|
|
239
|
+
<span class="method-name">working_directory</span><span class="method-args">()</span>
|
|
240
|
+
</a>
|
|
241
|
+
</div>
|
|
242
|
+
|
|
243
|
+
<div class="method-description">
|
|
244
|
+
<p><a class="source-toggle" href="#"
|
|
245
|
+
onclick="toggleCode('M000199-source');return false;">[Source]</a></p>
|
|
246
|
+
<div class="method-source-code" id="M000199-source">
|
|
247
|
+
<pre>
|
|
248
|
+
<span class="ruby-comment cmt"># File lib/stella/cli.rb, line 23</span>
|
|
249
|
+
23: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">working_directory</span>
|
|
250
|
+
24: <span class="ruby-value str">'stella'</span>
|
|
251
|
+
25: <span class="ruby-keyword kw">end</span>
|
|
252
|
+
</pre>
|
|
253
|
+
</div>
|
|
254
|
+
</div>
|
|
255
|
+
</div>
|
|
256
|
+
|
|
257
|
+
<div id="method-M000201" class="method-detail">
|
|
258
|
+
<a name="M000201"></a>
|
|
259
|
+
|
|
260
|
+
<div class="method-heading">
|
|
261
|
+
<a href="#M000201" class="method-signature">
|
|
262
|
+
<span class="method-name">working_directory</span><span class="method-args">()</span>
|
|
263
|
+
</a>
|
|
264
|
+
</div>
|
|
265
|
+
|
|
266
|
+
<div class="method-description">
|
|
267
|
+
<p><a class="source-toggle" href="#"
|
|
268
|
+
onclick="toggleCode('M000201-source');return false;">[Source]</a></p>
|
|
269
|
+
<div class="method-source-code" id="M000201-source">
|
|
270
|
+
<pre>
|
|
271
|
+
<span class="ruby-comment cmt"># File lib/stella/cli.rb, line 23</span>
|
|
272
|
+
23: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">working_directory</span>
|
|
273
|
+
24: <span class="ruby-value str">'stella'</span>
|
|
274
|
+
25: <span class="ruby-keyword kw">end</span>
|
|
275
|
+
</pre>
|
|
276
|
+
</div>
|
|
277
|
+
</div>
|
|
278
|
+
</div>
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
</div>
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
</div>
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
<div id="validator-badges">
|
|
288
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
289
|
+
</div>
|
|
290
|
+
|
|
291
|
+
</body>
|
|
292
|
+
</html>
|