netlinx-workspace 0.3.0 → 1.0.0
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.
- checksums.yaml +4 -4
- data/README.md +206 -6
- data/bin/netlinx-workspace +27 -0
- data/doc/NetLinx.html +18 -7
- data/doc/NetLinx/Compile.html +15 -4
- data/doc/NetLinx/Compile/Extension.html +15 -4
- data/doc/NetLinx/Compile/Extension/APW.html +8 -8
- data/doc/NetLinx/Project.html +334 -90
- data/doc/NetLinx/Rake.html +128 -0
- data/doc/NetLinx/Rake/Workspace.html +128 -0
- data/doc/NetLinx/Rake/Workspace/CreateWorkspaceConfig.html +387 -0
- data/doc/NetLinx/Rake/Workspace/GenerateAPW.html +371 -0
- data/doc/NetLinx/System.html +1341 -217
- data/doc/NetLinx/SystemFile.html +454 -51
- data/doc/NetLinx/Workspace.html +434 -69
- data/doc/NetLinx/Workspace/YAML.html +398 -0
- data/doc/_index.html +66 -4
- data/doc/class_list.html +6 -2
- data/doc/file.README.html +218 -10
- data/doc/file.license.html +4 -4
- data/doc/file_list.html +5 -1
- data/doc/frames.html +1 -1
- data/doc/index.html +218 -10
- data/doc/js/full_list.js +4 -1
- data/doc/method_list.html +171 -23
- data/doc/top-level-namespace.html +3 -3
- data/lib/netlinx/compile/extension/apw.rb +3 -0
- data/lib/netlinx/rake/workspace.rb +14 -0
- data/lib/netlinx/rake/workspace/create_workspace_config.rb +49 -0
- data/lib/netlinx/rake/workspace/generate_apw.rb +41 -0
- data/lib/netlinx/workspace.rb +58 -14
- data/lib/netlinx/workspace/project.rb +107 -0
- data/lib/netlinx/workspace/system.rb +226 -0
- data/lib/netlinx/workspace/system_file.rb +98 -0
- data/lib/netlinx/workspace/yaml.rb +217 -0
- data/license.txt +1 -1
- metadata +53 -28
- data/lib/netlinx-workspace.rb +0 -1
- data/lib/netlinx/project.rb +0 -83
- data/lib/netlinx/system.rb +0 -122
- data/lib/netlinx/system_file.rb +0 -36
@@ -0,0 +1,398 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: NetLinx::Workspace::YAML
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../../';
|
20
|
+
framesUrl = "../../frames.html#!NetLinx/Workspace/YAML.html";
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="../../_index.html">Index (Y)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../../NetLinx.html" title="NetLinx (module)">NetLinx</a></span></span> » <span class='title'><span class='object_link'><a href="../Workspace.html" title="NetLinx::Workspace (class)">Workspace</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">YAML</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: NetLinx::Workspace::YAML
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName">Object</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">NetLinx::Workspace::YAML</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
<dt class="r2 last">Defined in:</dt>
|
97
|
+
<dd class="r2 last">lib/netlinx/workspace/yaml.rb</dd>
|
98
|
+
|
99
|
+
</dl>
|
100
|
+
<div class="clear"></div>
|
101
|
+
|
102
|
+
<h2>Overview</h2><div class="docstring">
|
103
|
+
<div class="discussion">
|
104
|
+
|
105
|
+
<p>Configure NetLinx workspaces with YAML.</p>
|
106
|
+
|
107
|
+
|
108
|
+
</div>
|
109
|
+
</div>
|
110
|
+
<div class="tags">
|
111
|
+
|
112
|
+
|
113
|
+
</div>
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
<h2>
|
122
|
+
Class Method Summary
|
123
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
124
|
+
</h2>
|
125
|
+
|
126
|
+
<ul class="summary">
|
127
|
+
|
128
|
+
<li class="public ">
|
129
|
+
<span class="summary_signature">
|
130
|
+
|
131
|
+
<a href="#parse-class_method" title="parse (class method)">+ (NetLinx::Workspace) <strong>parse</strong>(string) </a>
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
</span>
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
146
|
+
|
147
|
+
</li>
|
148
|
+
|
149
|
+
|
150
|
+
<li class="public ">
|
151
|
+
<span class="summary_signature">
|
152
|
+
|
153
|
+
<a href="#parse_file-class_method" title="parse_file (class method)">+ (NetLinx::Workspace) <strong>parse_file</strong>(file) </a>
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
</span>
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
168
|
+
|
169
|
+
</li>
|
170
|
+
|
171
|
+
|
172
|
+
</ul>
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
<div id="class_method_details" class="method_details_list">
|
178
|
+
<h2>Class Method Details</h2>
|
179
|
+
|
180
|
+
|
181
|
+
<div class="method_details first">
|
182
|
+
<h3 class="signature first" id="parse-class_method">
|
183
|
+
|
184
|
+
+ (<tt><span class='object_link'><a href="../Workspace.html" title="NetLinx::Workspace (class)">NetLinx::Workspace</a></span></tt>) <strong>parse</strong>(string)
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
</h3><div class="docstring">
|
191
|
+
<div class="discussion">
|
192
|
+
|
193
|
+
|
194
|
+
</div>
|
195
|
+
</div>
|
196
|
+
<div class="tags">
|
197
|
+
|
198
|
+
<p class="tag_title">Returns:</p>
|
199
|
+
<ul class="return">
|
200
|
+
|
201
|
+
<li>
|
202
|
+
|
203
|
+
|
204
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Workspace.html" title="NetLinx::Workspace (class)">NetLinx::Workspace</a></span></tt>)</span>
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
</li>
|
209
|
+
|
210
|
+
</ul>
|
211
|
+
|
212
|
+
</div><table class="source_code">
|
213
|
+
<tr>
|
214
|
+
<td>
|
215
|
+
<pre class="lines">
|
216
|
+
|
217
|
+
|
218
|
+
9
|
219
|
+
10
|
220
|
+
11
|
221
|
+
12
|
222
|
+
13
|
223
|
+
14
|
224
|
+
15
|
225
|
+
16
|
226
|
+
17
|
227
|
+
18
|
228
|
+
19
|
229
|
+
20
|
230
|
+
21
|
231
|
+
22
|
232
|
+
23
|
233
|
+
24
|
234
|
+
25
|
235
|
+
26
|
236
|
+
27
|
237
|
+
28
|
238
|
+
29
|
239
|
+
30
|
240
|
+
31
|
241
|
+
32
|
242
|
+
33
|
243
|
+
34
|
244
|
+
35
|
245
|
+
36
|
246
|
+
37
|
247
|
+
38
|
248
|
+
39
|
249
|
+
40
|
250
|
+
41
|
251
|
+
42
|
252
|
+
43
|
253
|
+
44
|
254
|
+
45
|
255
|
+
46
|
256
|
+
47
|
257
|
+
48
|
258
|
+
49
|
259
|
+
50
|
260
|
+
51
|
261
|
+
52
|
262
|
+
53
|
263
|
+
54
|
264
|
+
55
|
265
|
+
56
|
266
|
+
57
|
267
|
+
58
|
268
|
+
59
|
269
|
+
60
|
270
|
+
61
|
271
|
+
62</pre>
|
272
|
+
</td>
|
273
|
+
<td>
|
274
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/yaml.rb', line 9</span>
|
275
|
+
|
276
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span> <span class='id identifier rubyid_string'>string</span>
|
277
|
+
<span class='id identifier rubyid_yaml'>yaml</span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>YAML</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span> <span class='id identifier rubyid_string'>string</span>
|
278
|
+
<span class='id identifier rubyid_yaml_systems'>yaml_systems</span> <span class='op'>=</span> <span class='id identifier rubyid_yaml'>yaml</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>systems</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
279
|
+
|
280
|
+
<span class='id identifier rubyid_workspace'>workspace</span> <span class='op'>=</span> <span class='const'>NetLinx</span><span class='op'>::</span><span class='const'>Workspace</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
281
|
+
|
282
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_yaml_systems'>yaml_systems</span>
|
283
|
+
<span class='comment'># Load systems into an implicit project and workspace.
|
284
|
+
</span> <span class='id identifier rubyid_workspace'>workspace</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='id identifier rubyid_yaml_systems'>yaml_systems</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>name</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
285
|
+
<span class='id identifier rubyid_project'>project</span> <span class='op'>=</span> <span class='const'>NetLinx</span><span class='op'>::</span><span class='const'>Project</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='label'>name:</span> <span class='id identifier rubyid_yaml_systems'>yaml_systems</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>name</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
286
|
+
<span class='id identifier rubyid_workspace'>workspace</span> <span class='op'><<</span> <span class='id identifier rubyid_project'>project</span>
|
287
|
+
|
288
|
+
<span class='id identifier rubyid_parse_systems'>parse_systems</span> <span class='id identifier rubyid_project'>project</span><span class='comma'>,</span> <span class='id identifier rubyid_yaml_systems'>yaml_systems</span>
|
289
|
+
<span class='kw'>else</span>
|
290
|
+
<span class='comment'># An explicit workspace is defined.
|
291
|
+
</span> <span class='id identifier rubyid_workspace'>workspace</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='id identifier rubyid_yaml'>yaml</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>name</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_yaml'>yaml</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>name</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
292
|
+
<span class='id identifier rubyid_workspace'>workspace</span><span class='period'>.</span><span class='id identifier rubyid_description'>description</span> <span class='op'>=</span> <span class='id identifier rubyid_yaml'>yaml</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>description</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_yaml'>yaml</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>description</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
293
|
+
|
294
|
+
<span class='id identifier rubyid_yaml_projects'>yaml_projects</span> <span class='op'>=</span> <span class='id identifier rubyid_yaml'>yaml</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>projects</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
295
|
+
<span class='id identifier rubyid_yaml_projects'>yaml_projects</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_yaml_project'>yaml_project</span><span class='op'>|</span>
|
296
|
+
<span class='id identifier rubyid_workspace'>workspace</span> <span class='op'><<</span> <span class='const'>NetLinx</span><span class='op'>::</span><span class='const'>Project</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_project'>project</span><span class='op'>|</span>
|
297
|
+
<span class='id identifier rubyid_project'>project</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='id identifier rubyid_yaml_project'>yaml_project</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>name</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_yaml_project'>yaml_project</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>name</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
298
|
+
<span class='id identifier rubyid_project'>project</span><span class='period'>.</span><span class='id identifier rubyid_designer'>designer</span> <span class='op'>=</span> <span class='id identifier rubyid_yaml_project'>yaml_project</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>designer</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='kw'>if</span> <span class='id identifier rubyid_yaml_project'>yaml_project</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>designer</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
299
|
+
<span class='id identifier rubyid_project'>project</span><span class='period'>.</span><span class='id identifier rubyid_dealer'>dealer</span> <span class='op'>=</span> <span class='id identifier rubyid_yaml_project'>yaml_project</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>dealer</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='kw'>if</span> <span class='id identifier rubyid_yaml_project'>yaml_project</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>dealer</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
300
|
+
<span class='id identifier rubyid_project'>project</span><span class='period'>.</span><span class='id identifier rubyid_sales_order'>sales_order</span> <span class='op'>=</span> <span class='id identifier rubyid_yaml_project'>yaml_project</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>sales_order</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='kw'>if</span> <span class='id identifier rubyid_yaml_project'>yaml_project</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>sales_order</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
301
|
+
<span class='id identifier rubyid_project'>project</span><span class='period'>.</span><span class='id identifier rubyid_purchase_order'>purchase_order</span> <span class='op'>=</span> <span class='id identifier rubyid_yaml_project'>yaml_project</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>purchase_order</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='kw'>if</span> <span class='id identifier rubyid_yaml_project'>yaml_project</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>purchase_order</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
302
|
+
<span class='id identifier rubyid_project'>project</span><span class='period'>.</span><span class='id identifier rubyid_description'>description</span> <span class='op'>=</span> <span class='id identifier rubyid_yaml_project'>yaml_project</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>description</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_yaml_project'>yaml_project</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>description</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
303
|
+
|
304
|
+
<span class='id identifier rubyid_parse_systems'>parse_systems</span> <span class='id identifier rubyid_project'>project</span><span class='comma'>,</span> <span class='id identifier rubyid_yaml_project'>yaml_project</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>systems</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
305
|
+
<span class='kw'>end</span>
|
306
|
+
<span class='kw'>end</span>
|
307
|
+
<span class='kw'>end</span>
|
308
|
+
|
309
|
+
<span class='comment'># Ensure exactly one system in the workspace is set active.
|
310
|
+
</span> <span class='id identifier rubyid_a_system_is_active'>a_system_is_active</span> <span class='op'>=</span> <span class='kw'>false</span>
|
311
|
+
<span class='id identifier rubyid_workspace'>workspace</span><span class='period'>.</span><span class='id identifier rubyid_projects'>projects</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_project'>project</span><span class='op'>|</span>
|
312
|
+
<span class='id identifier rubyid_project'>project</span><span class='period'>.</span><span class='id identifier rubyid_systems'>systems</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_system'>system</span><span class='op'>|</span>
|
313
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_a_system_is_active'>a_system_is_active</span>
|
314
|
+
<span class='id identifier rubyid_system'>system</span><span class='period'>.</span><span class='id identifier rubyid_active'>active</span> <span class='op'>=</span> <span class='kw'>false</span>
|
315
|
+
<span class='kw'>next</span>
|
316
|
+
<span class='kw'>else</span>
|
317
|
+
<span class='id identifier rubyid_a_system_is_active'>a_system_is_active</span> <span class='op'>=</span> <span class='kw'>true</span> <span class='kw'>if</span> <span class='id identifier rubyid_system'>system</span><span class='period'>.</span><span class='id identifier rubyid_active'>active</span>
|
318
|
+
<span class='kw'>end</span>
|
319
|
+
<span class='kw'>end</span>
|
320
|
+
<span class='kw'>end</span>
|
321
|
+
|
322
|
+
<span class='comment'># No active systems. Set the first one active automatically.
|
323
|
+
</span> <span class='id identifier rubyid_workspace'>workspace</span><span class='period'>.</span><span class='id identifier rubyid_projects'>projects</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='period'>.</span><span class='id identifier rubyid_systems'>systems</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='period'>.</span><span class='id identifier rubyid_active'>active</span> <span class='op'>=</span> <span class='kw'>true</span> \
|
324
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_a_system_is_active'>a_system_is_active</span> \
|
325
|
+
<span class='kw'>or</span> <span class='id identifier rubyid_workspace'>workspace</span><span class='period'>.</span><span class='id identifier rubyid_projects'>projects</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span> \
|
326
|
+
<span class='kw'>or</span> <span class='id identifier rubyid_workspace'>workspace</span><span class='period'>.</span><span class='id identifier rubyid_projects'>projects</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='period'>.</span><span class='id identifier rubyid_systems'>systems</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
327
|
+
|
328
|
+
<span class='id identifier rubyid_workspace'>workspace</span>
|
329
|
+
<span class='kw'>end</span></pre>
|
330
|
+
</td>
|
331
|
+
</tr>
|
332
|
+
</table>
|
333
|
+
</div>
|
334
|
+
|
335
|
+
<div class="method_details ">
|
336
|
+
<h3 class="signature " id="parse_file-class_method">
|
337
|
+
|
338
|
+
+ (<tt><span class='object_link'><a href="../Workspace.html" title="NetLinx::Workspace (class)">NetLinx::Workspace</a></span></tt>) <strong>parse_file</strong>(file)
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
</h3><div class="docstring">
|
345
|
+
<div class="discussion">
|
346
|
+
|
347
|
+
|
348
|
+
</div>
|
349
|
+
</div>
|
350
|
+
<div class="tags">
|
351
|
+
|
352
|
+
<p class="tag_title">Returns:</p>
|
353
|
+
<ul class="return">
|
354
|
+
|
355
|
+
<li>
|
356
|
+
|
357
|
+
|
358
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Workspace.html" title="NetLinx::Workspace (class)">NetLinx::Workspace</a></span></tt>)</span>
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
</li>
|
363
|
+
|
364
|
+
</ul>
|
365
|
+
|
366
|
+
</div><table class="source_code">
|
367
|
+
<tr>
|
368
|
+
<td>
|
369
|
+
<pre class="lines">
|
370
|
+
|
371
|
+
|
372
|
+
65
|
373
|
+
66
|
374
|
+
67</pre>
|
375
|
+
</td>
|
376
|
+
<td>
|
377
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/yaml.rb', line 65</span>
|
378
|
+
|
379
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_parse_file'>parse_file</span> <span class='id identifier rubyid_file'>file</span>
|
380
|
+
<span class='id identifier rubyid_parse'>parse</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>r</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span>
|
381
|
+
<span class='kw'>end</span></pre>
|
382
|
+
</td>
|
383
|
+
</tr>
|
384
|
+
</table>
|
385
|
+
</div>
|
386
|
+
|
387
|
+
</div>
|
388
|
+
|
389
|
+
</div>
|
390
|
+
|
391
|
+
<div id="footer">
|
392
|
+
Generated on Tue Feb 24 17:43:02 2015 by
|
393
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
394
|
+
0.8.7.6 (ruby-2.1.3).
|
395
|
+
</div>
|
396
|
+
|
397
|
+
</body>
|
398
|
+
</html>
|
data/doc/_index.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
6
|
<title>
|
7
|
-
Documentation by YARD 0.8.7.
|
7
|
+
Documentation by YARD 0.8.7.6
|
8
8
|
|
9
9
|
</title>
|
10
10
|
|
@@ -56,7 +56,7 @@
|
|
56
56
|
|
57
57
|
<iframe id="search_frame"></iframe>
|
58
58
|
|
59
|
-
<div id="content"><h1 class="noborder title">Documentation by YARD 0.8.7.
|
59
|
+
<div id="content"><h1 class="noborder title">Documentation by YARD 0.8.7.6</h1>
|
60
60
|
<div id="listing">
|
61
61
|
<h1 class="alphaindex">Alphabetic Index</h1>
|
62
62
|
|
@@ -109,6 +109,13 @@
|
|
109
109
|
|
110
110
|
</li>
|
111
111
|
|
112
|
+
<li>
|
113
|
+
<span class='object_link'><a href="NetLinx/Rake/Workspace/CreateWorkspaceConfig.html" title="NetLinx::Rake::Workspace::CreateWorkspaceConfig (class)">CreateWorkspaceConfig</a></span>
|
114
|
+
|
115
|
+
<small>(NetLinx::Rake::Workspace)</small>
|
116
|
+
|
117
|
+
</li>
|
118
|
+
|
112
119
|
</ul>
|
113
120
|
</ul>
|
114
121
|
|
@@ -128,6 +135,21 @@
|
|
128
135
|
</ul>
|
129
136
|
|
130
137
|
|
138
|
+
<ul id="alpha_G" class="alpha">
|
139
|
+
<li class="letter">G</li>
|
140
|
+
<ul>
|
141
|
+
|
142
|
+
<li>
|
143
|
+
<span class='object_link'><a href="NetLinx/Rake/Workspace/GenerateAPW.html" title="NetLinx::Rake::Workspace::GenerateAPW (class)">GenerateAPW</a></span>
|
144
|
+
|
145
|
+
<small>(NetLinx::Rake::Workspace)</small>
|
146
|
+
|
147
|
+
</li>
|
148
|
+
|
149
|
+
</ul>
|
150
|
+
</ul>
|
151
|
+
|
152
|
+
|
131
153
|
<ul id="alpha_N" class="alpha">
|
132
154
|
<li class="letter">N</li>
|
133
155
|
<ul>
|
@@ -156,6 +178,24 @@
|
|
156
178
|
</ul>
|
157
179
|
|
158
180
|
|
181
|
+
<ul id="alpha_R" class="alpha">
|
182
|
+
<li class="letter">R</li>
|
183
|
+
<ul>
|
184
|
+
|
185
|
+
<li>
|
186
|
+
<span class='object_link'><a href="NetLinx/Rake.html" title="NetLinx::Rake (module)">Rake</a></span>
|
187
|
+
|
188
|
+
<small>(NetLinx)</small>
|
189
|
+
|
190
|
+
</li>
|
191
|
+
|
192
|
+
</ul>
|
193
|
+
</ul>
|
194
|
+
|
195
|
+
|
196
|
+
</td><td valign='top' width="33%">
|
197
|
+
|
198
|
+
|
159
199
|
<ul id="alpha_S" class="alpha">
|
160
200
|
<li class="letter">S</li>
|
161
201
|
<ul>
|
@@ -182,6 +222,13 @@
|
|
182
222
|
<li class="letter">W</li>
|
183
223
|
<ul>
|
184
224
|
|
225
|
+
<li>
|
226
|
+
<span class='object_link'><a href="NetLinx/Rake/Workspace.html" title="NetLinx::Rake::Workspace (module)">Workspace</a></span>
|
227
|
+
|
228
|
+
<small>(NetLinx::Rake)</small>
|
229
|
+
|
230
|
+
</li>
|
231
|
+
|
185
232
|
<li>
|
186
233
|
<span class='object_link'><a href="NetLinx/Workspace.html" title="NetLinx::Workspace (class)">Workspace</a></span>
|
187
234
|
|
@@ -192,6 +239,21 @@
|
|
192
239
|
</ul>
|
193
240
|
</ul>
|
194
241
|
|
242
|
+
|
243
|
+
<ul id="alpha_Y" class="alpha">
|
244
|
+
<li class="letter">Y</li>
|
245
|
+
<ul>
|
246
|
+
|
247
|
+
<li>
|
248
|
+
<span class='object_link'><a href="NetLinx/Workspace/YAML.html" title="NetLinx::Workspace::YAML (class)">YAML</a></span>
|
249
|
+
|
250
|
+
<small>(NetLinx::Workspace)</small>
|
251
|
+
|
252
|
+
</li>
|
253
|
+
|
254
|
+
</ul>
|
255
|
+
</ul>
|
256
|
+
|
195
257
|
</td>
|
196
258
|
</tr>
|
197
259
|
</table>
|
@@ -201,9 +263,9 @@
|
|
201
263
|
</div>
|
202
264
|
|
203
265
|
<div id="footer">
|
204
|
-
Generated on
|
266
|
+
Generated on Tue Feb 24 17:43:00 2015 by
|
205
267
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
206
|
-
0.8.7.
|
268
|
+
0.8.7.6 (ruby-2.1.3).
|
207
269
|
</div>
|
208
270
|
|
209
271
|
</body>
|