netlinx-erb 1.1.0 → 2.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 +440 -6
- data/doc/Array.html +5 -5
- data/doc/Hash.html +5 -5
- data/doc/NetLinx.html +3 -3
- data/doc/NetLinx/ERB.html +401 -13
- data/doc/NetLinx/ERB/HashHelpers.html +1 -1
- data/doc/NetLinx/ERB/Helpers.html +5 -130
- data/doc/NetLinx/Rake.html +3 -3
- data/doc/NetLinx/Rake/ERB.html +4 -4
- data/doc/NetLinx/Rake/ERB/GenerateERB.html +6 -14
- data/doc/NetLinx/Rake/ERB/GenerateRPC.html +1 -1
- data/doc/NetLinx/Rake/ERB/Lines.html +1 -1
- data/doc/NetLinx/Rake/ERB/Push.html +417 -0
- data/doc/RPC.html +1 -1
- data/doc/String.html +14 -14
- data/doc/_index.html +19 -4
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +477 -9
- data/doc/file.license.html +1 -1
- data/doc/index.html +477 -9
- data/doc/method_list.html +40 -22
- data/doc/top-level-namespace.html +1 -1
- data/lib/netlinx-erb.rb +3 -20
- data/lib/netlinx/erb.rb +22 -0
- data/lib/netlinx/erb/erb.rb +71 -6
- data/lib/netlinx/erb/helpers.rb +0 -10
- data/lib/netlinx/rake/erb.rb +2 -0
- data/lib/netlinx/rake/erb/generate_erb.rb +3 -7
- data/lib/netlinx/rake/erb/push.rb +65 -0
- data/template.zip +0 -0
- metadata +6 -3
@@ -404,7 +404,7 @@ with the result.</p>
|
|
404
404
|
</div>
|
405
405
|
|
406
406
|
<div id="footer">
|
407
|
-
Generated on
|
407
|
+
Generated on Mon Jun 29 16:09:05 2015 by
|
408
408
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
409
409
|
0.8.7.6 (ruby-2.1.3).
|
410
410
|
</div>
|
@@ -237,30 +237,6 @@ files.</p>
|
|
237
237
|
<p>Generate a button_event block for the given hash of buttons.</p>
|
238
238
|
</div></span>
|
239
239
|
|
240
|
-
</li>
|
241
|
-
|
242
|
-
|
243
|
-
<li class="public ">
|
244
|
-
<span class="summary_signature">
|
245
|
-
|
246
|
-
<a href="#execute_erb-instance_method" title="#execute_erb (instance method)">- (String) <strong>execute_erb</strong>(template_file) </a>
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
</span>
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
<span class="summary_desc"><div class='inline'>
|
261
|
-
<p>Run ERB on the given template file.</p>
|
262
|
-
</div></span>
|
263
|
-
|
264
240
|
</li>
|
265
241
|
|
266
242
|
|
@@ -1144,12 +1120,12 @@ duplicated.</p>
|
|
1144
1120
|
<pre class="lines">
|
1145
1121
|
|
1146
1122
|
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1123
|
+
323
|
1124
|
+
324
|
1125
|
+
325</pre>
|
1150
1126
|
</td>
|
1151
1127
|
<td>
|
1152
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/erb/helpers.rb', line
|
1128
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/erb/helpers.rb', line 323</span>
|
1153
1129
|
|
1154
1130
|
<span class='kw'>def</span> <span class='id identifier rubyid_check_for_duplicate_values'>check_for_duplicate_values</span> <span class='op'>*</span><span class='id identifier rubyid_hashes'>hashes</span>
|
1155
1131
|
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>NotImplementedError</span>
|
@@ -1157,107 +1133,6 @@ duplicated.</p>
|
|
1157
1133
|
</td>
|
1158
1134
|
</tr>
|
1159
1135
|
</table>
|
1160
|
-
</div>
|
1161
|
-
|
1162
|
-
<div class="method_details ">
|
1163
|
-
<h3 class="signature " id="execute_erb-instance_method">
|
1164
|
-
|
1165
|
-
- (<tt><span class='object_link'><a href="../../String.html" title="String (class)">String</a></span></tt>) <strong>execute_erb</strong>(template_file)
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
</h3><div class="docstring">
|
1172
|
-
<div class="discussion">
|
1173
|
-
|
1174
|
-
<p>Run ERB on the given template file.</p>
|
1175
|
-
|
1176
|
-
|
1177
|
-
</div>
|
1178
|
-
</div>
|
1179
|
-
<div class="tags">
|
1180
|
-
<p class="tag_title">Parameters:</p>
|
1181
|
-
<ul class="param">
|
1182
|
-
|
1183
|
-
<li>
|
1184
|
-
|
1185
|
-
<span class='name'>template_file</span>
|
1186
|
-
|
1187
|
-
|
1188
|
-
<span class='type'>(<tt><span class='object_link'><a href="../../String.html" title="String (class)">String</a></span></tt>)</span>
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
—
|
1193
|
-
<div class='inline'>
|
1194
|
-
<p>file path</p>
|
1195
|
-
</div>
|
1196
|
-
|
1197
|
-
</li>
|
1198
|
-
|
1199
|
-
</ul>
|
1200
|
-
|
1201
|
-
<p class="tag_title">Returns:</p>
|
1202
|
-
<ul class="return">
|
1203
|
-
|
1204
|
-
<li>
|
1205
|
-
|
1206
|
-
|
1207
|
-
<span class='type'>(<tt><span class='object_link'><a href="../../String.html" title="String (class)">String</a></span></tt>)</span>
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1211
|
-
—
|
1212
|
-
<div class='inline'>
|
1213
|
-
<p>ERB output.</p>
|
1214
|
-
</div>
|
1215
|
-
|
1216
|
-
</li>
|
1217
|
-
|
1218
|
-
</ul>
|
1219
|
-
<p class="tag_title">Raises:</p>
|
1220
|
-
<ul class="raise">
|
1221
|
-
|
1222
|
-
<li>
|
1223
|
-
|
1224
|
-
|
1225
|
-
<span class='type'>(<tt>LoadError</tt>)</span>
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1229
|
-
—
|
1230
|
-
<div class='inline'>
|
1231
|
-
<p>template not found</p>
|
1232
|
-
</div>
|
1233
|
-
|
1234
|
-
</li>
|
1235
|
-
|
1236
|
-
</ul>
|
1237
|
-
|
1238
|
-
</div><table class="source_code">
|
1239
|
-
<tr>
|
1240
|
-
<td>
|
1241
|
-
<pre class="lines">
|
1242
|
-
|
1243
|
-
|
1244
|
-
320
|
1245
|
-
321
|
1246
|
-
322
|
1247
|
-
323
|
1248
|
-
324</pre>
|
1249
|
-
</td>
|
1250
|
-
<td>
|
1251
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/erb/helpers.rb', line 320</span>
|
1252
|
-
|
1253
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_execute_erb'>execute_erb</span> <span class='id identifier rubyid_template_file'>template_file</span>
|
1254
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>LoadError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Template not found: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_template_file'>template_file</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exists?'>exists?</span> <span class='id identifier rubyid_template_file'>template_file</span>
|
1255
|
-
<span class='gvar'>$AUTOGEN_HEADER</span> <span class='op'>+</span> <span class='op'>::</span><span class='const'>ERB</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='id identifier rubyid_template_file'>template_file</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>%<>-</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>
|
1256
|
-
</span><span class='id identifier rubyid_ .result'> .result</span><span class='lparen'>(</span><span class='const'>NetLinx</span><span class='op'>::</span><span class='const'>ERB</span><span class='period'>.</span><span class='id identifier rubyid_binding'>binding</span><span class='rparen'>)</span>
|
1257
|
-
<span class='kw'>end</span></pre>
|
1258
|
-
</td>
|
1259
|
-
</tr>
|
1260
|
-
</table>
|
1261
1136
|
</div>
|
1262
1137
|
|
1263
1138
|
<div class="method_details ">
|
@@ -2148,7 +2023,7 @@ in itoa().</p>
|
|
2148
2023
|
</div>
|
2149
2024
|
|
2150
2025
|
<div id="footer">
|
2151
|
-
Generated on
|
2026
|
+
Generated on Mon Jun 29 16:09:05 2015 by
|
2152
2027
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2153
2028
|
0.8.7.6 (ruby-2.1.3).
|
2154
2029
|
</div>
|
data/doc/NetLinx/Rake.html
CHANGED
@@ -79,8 +79,8 @@
|
|
79
79
|
|
80
80
|
|
81
81
|
<dt class="r1 last">Defined in:</dt>
|
82
|
-
<dd class="r1 last">lib/netlinx
|
83
|
-
lib/netlinx/rake/erb/lines.rb,<br /> lib/netlinx/rake/erb/generate_rpc.rb,<br /> lib/netlinx/rake/erb/generate_erb.rb</span>
|
82
|
+
<dd class="r1 last">lib/netlinx/erb.rb<span class="defines">,<br />
|
83
|
+
lib/netlinx/rake/erb/push.rb,<br /> lib/netlinx/rake/erb/lines.rb,<br /> lib/netlinx/rake/erb/generate_rpc.rb,<br /> lib/netlinx/rake/erb/generate_erb.rb</span>
|
84
84
|
</dd>
|
85
85
|
|
86
86
|
</dl>
|
@@ -119,7 +119,7 @@
|
|
119
119
|
</div>
|
120
120
|
|
121
121
|
<div id="footer">
|
122
|
-
Generated on
|
122
|
+
Generated on Mon Jun 29 16:09:05 2015 by
|
123
123
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
124
124
|
0.8.7.6 (ruby-2.1.3).
|
125
125
|
</div>
|
data/doc/NetLinx/Rake/ERB.html
CHANGED
@@ -79,8 +79,8 @@
|
|
79
79
|
|
80
80
|
|
81
81
|
<dt class="r1 last">Defined in:</dt>
|
82
|
-
<dd class="r1 last">lib/netlinx
|
83
|
-
lib/netlinx/rake/erb/lines.rb,<br /> lib/netlinx/rake/erb/generate_rpc.rb,<br /> lib/netlinx/rake/erb/generate_erb.rb</span>
|
82
|
+
<dd class="r1 last">lib/netlinx/erb.rb<span class="defines">,<br />
|
83
|
+
lib/netlinx/rake/erb/push.rb,<br /> lib/netlinx/rake/erb/lines.rb,<br /> lib/netlinx/rake/erb/generate_rpc.rb,<br /> lib/netlinx/rake/erb/generate_erb.rb</span>
|
84
84
|
</dd>
|
85
85
|
|
86
86
|
</dl>
|
@@ -103,7 +103,7 @@
|
|
103
103
|
|
104
104
|
|
105
105
|
|
106
|
-
<strong class="classes">Classes:</strong> <span class='object_link'><a href="ERB/GenerateERB.html" title="NetLinx::Rake::ERB::GenerateERB (class)">GenerateERB</a></span>, <span class='object_link'><a href="ERB/GenerateRPC.html" title="NetLinx::Rake::ERB::GenerateRPC (class)">GenerateRPC</a></span>, <span class='object_link'><a href="ERB/Lines.html" title="NetLinx::Rake::ERB::Lines (class)">Lines</a></span>
|
106
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="ERB/GenerateERB.html" title="NetLinx::Rake::ERB::GenerateERB (class)">GenerateERB</a></span>, <span class='object_link'><a href="ERB/GenerateRPC.html" title="NetLinx::Rake::ERB::GenerateRPC (class)">GenerateRPC</a></span>, <span class='object_link'><a href="ERB/Lines.html" title="NetLinx::Rake::ERB::Lines (class)">Lines</a></span>, <span class='object_link'><a href="ERB/Push.html" title="NetLinx::Rake::ERB::Push (class)">Push</a></span>
|
107
107
|
|
108
108
|
|
109
109
|
</p>
|
@@ -119,7 +119,7 @@
|
|
119
119
|
</div>
|
120
120
|
|
121
121
|
<div id="footer">
|
122
|
-
Generated on
|
122
|
+
Generated on Mon Jun 29 16:09:05 2015 by
|
123
123
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
124
124
|
0.8.7.6 (ruby-2.1.3).
|
125
125
|
</div>
|
@@ -294,11 +294,7 @@
|
|
294
294
|
54
|
295
295
|
55
|
296
296
|
56
|
297
|
-
57
|
298
|
-
58
|
299
|
-
59
|
300
|
-
60
|
301
|
-
61</pre>
|
297
|
+
57</pre>
|
302
298
|
</td>
|
303
299
|
<td>
|
304
300
|
<pre class="code"><span class="info file"># File 'lib/netlinx/rake/erb/generate_erb.rb', line 14</span>
|
@@ -316,14 +312,12 @@
|
|
316
312
|
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>------------------------------------</span><span class='tstring_end'>"</span></span>
|
317
313
|
|
318
314
|
<span class='id identifier rubyid_templates'>templates</span> <span class='op'>=</span> <span class='const'>Dir</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>include/**/*.erb</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
319
|
-
|
320
|
-
<span class='id identifier rubyid_outputs'>outputs</span> <span class='op'>=</span> <span class='id identifier rubyid_templates'>templates</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_str'>str</span><span class='op'>|</span> <span class='id identifier rubyid_str'>str</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\.erb$</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span> <span class='rbrace'>}</span>
|
321
|
-
|
315
|
+
|
322
316
|
<span class='id identifier rubyid_templates'>templates</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_template'>template</span><span class='op'>|</span>
|
323
317
|
<span class='id identifier rubyid_file_name'>file_name</span> <span class='op'>=</span> <span class='id identifier rubyid_template'>template</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\.erb$</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
324
318
|
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_file_name'>file_name</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
325
319
|
|
326
|
-
<span class='
|
320
|
+
<span class='gvar'>$AUTOGEN_HEADER</span> <span class='op'>=</span> <span class='heredoc_beg'><<-HEADER</span>
|
327
321
|
<span class='tstring_content'>(***********************************************************)
|
328
322
|
(* WARNING *)
|
329
323
|
(***********************************************************}
|
@@ -340,11 +334,9 @@
|
|
340
334
|
{***********************************************************)
|
341
335
|
|
342
336
|
</span><span class='heredoc_end'> HEADER
|
343
|
-
</span>
|
344
|
-
|
337
|
+
</span>
|
345
338
|
<span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span> <span class='id identifier rubyid_file_name'>file_name</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>w+</span><span class='tstring_end'>'</span></span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_file'>file</span><span class='op'>|</span>
|
346
|
-
|
347
|
-
</span><span class='id identifier rubyid_ .result'> .result</span><span class='lparen'>(</span><span class='const'>NetLinx</span><span class='op'>::</span><span class='const'>ERB</span><span class='period'>.</span><span class='id identifier rubyid_binding'>binding</span><span class='rparen'>)</span>
|
339
|
+
<span class='id identifier rubyid_file'>file</span><span class='period'>.</span><span class='id identifier rubyid_write'>write</span> <span class='const'>NetLinx</span><span class='op'>::</span><span class='const'>ERB</span><span class='period'>.</span><span class='id identifier rubyid_execute'>execute</span><span class='lparen'>(</span><span class='id identifier rubyid_template'>template</span><span class='rparen'>)</span>
|
348
340
|
<span class='kw'>end</span>
|
349
341
|
<span class='kw'>end</span>
|
350
342
|
|
@@ -410,7 +402,7 @@
|
|
410
402
|
</div>
|
411
403
|
|
412
404
|
<div id="footer">
|
413
|
-
Generated on
|
405
|
+
Generated on Mon Jun 29 16:09:06 2015 by
|
414
406
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
415
407
|
0.8.7.6 (ruby-2.1.3).
|
416
408
|
</div>
|
@@ -340,7 +340,7 @@
|
|
340
340
|
</div>
|
341
341
|
|
342
342
|
<div id="footer">
|
343
|
-
Generated on
|
343
|
+
Generated on Mon Jun 29 16:09:06 2015 by
|
344
344
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
345
345
|
0.8.7.6 (ruby-2.1.3).
|
346
346
|
</div>
|
@@ -372,7 +372,7 @@
|
|
372
372
|
</div>
|
373
373
|
|
374
374
|
<div id="footer">
|
375
|
-
Generated on
|
375
|
+
Generated on Mon Jun 29 16:09:06 2015 by
|
376
376
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
377
377
|
0.8.7.6 (ruby-2.1.3).
|
378
378
|
</div>
|
@@ -0,0 +1,417 @@
|
|
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::Rake::ERB::Push
|
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/Rake/ERB/Push.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 (P)</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="../../Rake.html" title="NetLinx::Rake (module)">Rake</a></span></span> » <span class='title'><span class='object_link'><a href="../ERB.html" title="NetLinx::Rake::ERB (module)">ERB</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">Push</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::Rake::ERB::Push
|
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">Rake::TaskLib</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">Rake::TaskLib</li>
|
82
|
+
|
83
|
+
<li class="next">NetLinx::Rake::ERB::Push</li>
|
84
|
+
|
85
|
+
</ul>
|
86
|
+
<a href="#" class="inheritanceTree">show all</a>
|
87
|
+
|
88
|
+
</dd>
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
<dt class="r2 last">Defined in:</dt>
|
99
|
+
<dd class="r2 last">lib/netlinx/rake/erb/push.rb</dd>
|
100
|
+
|
101
|
+
</dl>
|
102
|
+
<div class="clear"></div>
|
103
|
+
|
104
|
+
<h2>Overview</h2><div class="docstring">
|
105
|
+
<div class="discussion">
|
106
|
+
|
107
|
+
<p>Push project to NetLinx master(s).</p>
|
108
|
+
|
109
|
+
|
110
|
+
</div>
|
111
|
+
</div>
|
112
|
+
<div class="tags">
|
113
|
+
|
114
|
+
|
115
|
+
</div>
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
120
|
+
<ul class="summary">
|
121
|
+
|
122
|
+
<li class="public ">
|
123
|
+
<span class="summary_signature">
|
124
|
+
|
125
|
+
<a href="#name-instance_method" title="#name (instance method)">- (Object) <strong>name</strong> </a>
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
</span>
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
<span class="summary_desc"><div class='inline'>
|
143
|
+
<p>Returns the value of attribute name.</p>
|
144
|
+
</div></span>
|
145
|
+
|
146
|
+
</li>
|
147
|
+
|
148
|
+
|
149
|
+
</ul>
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
<h2>
|
156
|
+
Instance Method Summary
|
157
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
158
|
+
</h2>
|
159
|
+
|
160
|
+
<ul class="summary">
|
161
|
+
|
162
|
+
<li class="public ">
|
163
|
+
<span class="summary_signature">
|
164
|
+
|
165
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Push) <strong>initialize</strong>(name = :push) {|_self| ... }</a>
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
</span>
|
170
|
+
|
171
|
+
|
172
|
+
<span class="note title constructor">constructor</span>
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
<span class="summary_desc"><div class='inline'>
|
182
|
+
<p>A new instance of Push.</p>
|
183
|
+
</div></span>
|
184
|
+
|
185
|
+
</li>
|
186
|
+
|
187
|
+
|
188
|
+
</ul>
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
<div id="constructor_details" class="method_details_list">
|
193
|
+
<h2>Constructor Details</h2>
|
194
|
+
|
195
|
+
<div class="method_details first">
|
196
|
+
<h3 class="signature first" id="initialize-instance_method">
|
197
|
+
|
198
|
+
- (<tt><span class='object_link'><a href="" title="NetLinx::Rake::ERB::Push (class)">Push</a></span></tt>) <strong>initialize</strong>(name = :push) {|_self| ... }
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
</h3><div class="docstring">
|
205
|
+
<div class="discussion">
|
206
|
+
|
207
|
+
<p>Returns a new instance of Push</p>
|
208
|
+
|
209
|
+
|
210
|
+
</div>
|
211
|
+
</div>
|
212
|
+
<div class="tags">
|
213
|
+
|
214
|
+
<p class="tag_title">Yields:</p>
|
215
|
+
<ul class="yield">
|
216
|
+
|
217
|
+
<li>
|
218
|
+
|
219
|
+
|
220
|
+
<span class='type'>(<tt>_self</tt>)</span>
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
</li>
|
225
|
+
|
226
|
+
</ul>
|
227
|
+
<p class="tag_title">Yield Parameters:</p>
|
228
|
+
<ul class="yieldparam">
|
229
|
+
|
230
|
+
<li>
|
231
|
+
|
232
|
+
<span class='name'>_self</span>
|
233
|
+
|
234
|
+
|
235
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="NetLinx::Rake::ERB::Push (class)">NetLinx::Rake::ERB::Push</a></span></tt>)</span>
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
—
|
240
|
+
<div class='inline'>
|
241
|
+
<p>the object that the method was called on</p>
|
242
|
+
</div>
|
243
|
+
|
244
|
+
</li>
|
245
|
+
|
246
|
+
</ul>
|
247
|
+
|
248
|
+
</div><table class="source_code">
|
249
|
+
<tr>
|
250
|
+
<td>
|
251
|
+
<pre class="lines">
|
252
|
+
|
253
|
+
|
254
|
+
14
|
255
|
+
15
|
256
|
+
16
|
257
|
+
17
|
258
|
+
18
|
259
|
+
19
|
260
|
+
20
|
261
|
+
21
|
262
|
+
22
|
263
|
+
23
|
264
|
+
24
|
265
|
+
25
|
266
|
+
26
|
267
|
+
27
|
268
|
+
28
|
269
|
+
29
|
270
|
+
30
|
271
|
+
31
|
272
|
+
32
|
273
|
+
33
|
274
|
+
34
|
275
|
+
35
|
276
|
+
36
|
277
|
+
37
|
278
|
+
38
|
279
|
+
39
|
280
|
+
40
|
281
|
+
41
|
282
|
+
42
|
283
|
+
43
|
284
|
+
44
|
285
|
+
45
|
286
|
+
46
|
287
|
+
47
|
288
|
+
48
|
289
|
+
49
|
290
|
+
50
|
291
|
+
51
|
292
|
+
52
|
293
|
+
53
|
294
|
+
54
|
295
|
+
55
|
296
|
+
56
|
297
|
+
57
|
298
|
+
58
|
299
|
+
59
|
300
|
+
60</pre>
|
301
|
+
</td>
|
302
|
+
<td>
|
303
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/rake/erb/push.rb', line 14</span>
|
304
|
+
|
305
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='symbol'>:push</span>
|
306
|
+
<span class='ivar'>@name</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span>
|
307
|
+
<span class='kw'>yield</span> <span class='kw'>self</span> <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
308
|
+
|
309
|
+
<span class='id identifier rubyid_desc'>desc</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Push project to NetLinx master(s).</span><span class='tstring_end'>"</span></span>
|
310
|
+
|
311
|
+
<span class='id identifier rubyid_task'>task</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span> <span class='kw'>do</span>
|
312
|
+
<span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>netlinx-erb</span><span class='tstring_end'>'</span></span>
|
313
|
+
|
314
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Pushing files to master(s)...</span><span class='tstring_end'>"</span></span>
|
315
|
+
|
316
|
+
<span class='comment'># AMX BUG:
|
317
|
+
</span> <span class='comment'># Make sure FileTransfer isn't running when FTCon.exe is executed.
|
318
|
+
</span> <span class='comment'># FileTransfer2.exe fails to terminate if it fails to connect to
|
319
|
+
</span> <span class='comment'># a master controller. This causes the first workspace to remain
|
320
|
+
</span> <span class='comment'># in memory, even if the workspace settings are changed and
|
321
|
+
</span> <span class='comment'># FileTransfer2.exe is executed again. Sometimes it ignores the
|
322
|
+
</span> <span class='comment'># kill signal, so the /f flag is used to force termination.
|
323
|
+
</span> <span class='comment'>#
|
324
|
+
</span> <span class='comment'># Reported to AMX support on 2015-03-30.
|
325
|
+
</span> <span class='comment'># Escalation# 26107
|
326
|
+
</span> <span class='comment'># If you encounter this bug, report it to AMX:
|
327
|
+
</span> <span class='comment'># Support@amx.com or 1-800-932-6993
|
328
|
+
</span> <span class='kw'>if</span> <span class='const'>Gem</span><span class='period'>.</span><span class='id identifier rubyid_win_platform?'>win_platform?</span>
|
329
|
+
<span class='const'>IO</span><span class='period'>.</span><span class='id identifier rubyid_popen'>popen</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>taskkill /f /im FileTransfer2.exe 2> nul</span><span class='tstring_end'>"</span></span>
|
330
|
+
<span class='kw'>else</span>
|
331
|
+
<span class='const'>IO</span><span class='period'>.</span><span class='id identifier rubyid_popen'>popen</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>killall -q -s KILL FileTransfer2.exe</span><span class='tstring_end'>"</span></span>
|
332
|
+
<span class='kw'>end</span>
|
333
|
+
|
334
|
+
<span class='id identifier rubyid_sleep'>sleep</span> <span class='float'>0.25</span> <span class='comment'># Let process terminate.
|
335
|
+
</span>
|
336
|
+
<span class='comment'># TODO: Implement ENV['NETLINX_ACTIVE_SYSTEM_ONLY']
|
337
|
+
</span> <span class='comment'># TODO: Implement filtering by type:
|
338
|
+
</span> <span class='comment'># code, master files (code, IR), touch panels,
|
339
|
+
</span> <span class='comment'># specific touch panel/device
|
340
|
+
</span>
|
341
|
+
<span class='const'>Dir</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>*.apw</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</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_apw_file'>apw_file</span><span class='op'>|</span>
|
342
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_apw_file'>apw_file</span>
|
343
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>NetLinx workspace file not found.</span><span class='tstring_end'>"</span></span>
|
344
|
+
<span class='id identifier rubyid_exit'>exit</span>
|
345
|
+
<span class='kw'>end</span>
|
346
|
+
|
347
|
+
<span class='id identifier rubyid_system'>system</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>FTCon \"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_apw_file'>apw_file</span><span class='embexpr_end'>}</span><span class='tstring_content'>\"</span><span class='tstring_end'>"</span></span>
|
348
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Done.\n\n</span><span class='tstring_end'>"</span></span>
|
349
|
+
<span class='kw'>end</span>
|
350
|
+
<span class='kw'>end</span>
|
351
|
+
<span class='kw'>end</span></pre>
|
352
|
+
</td>
|
353
|
+
</tr>
|
354
|
+
</table>
|
355
|
+
</div>
|
356
|
+
|
357
|
+
</div>
|
358
|
+
|
359
|
+
<div id="instance_attr_details" class="attr_details">
|
360
|
+
<h2>Instance Attribute Details</h2>
|
361
|
+
|
362
|
+
|
363
|
+
<span id="name=-instance_method"></span>
|
364
|
+
<div class="method_details first">
|
365
|
+
<h3 class="signature first" id="name-instance_method">
|
366
|
+
|
367
|
+
- (<tt>Object</tt>) <strong>name</strong>
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
</h3><div class="docstring">
|
374
|
+
<div class="discussion">
|
375
|
+
|
376
|
+
<p>Returns the value of attribute name</p>
|
377
|
+
|
378
|
+
|
379
|
+
</div>
|
380
|
+
</div>
|
381
|
+
<div class="tags">
|
382
|
+
|
383
|
+
|
384
|
+
</div><table class="source_code">
|
385
|
+
<tr>
|
386
|
+
<td>
|
387
|
+
<pre class="lines">
|
388
|
+
|
389
|
+
|
390
|
+
12
|
391
|
+
13
|
392
|
+
14</pre>
|
393
|
+
</td>
|
394
|
+
<td>
|
395
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/rake/erb/push.rb', line 12</span>
|
396
|
+
|
397
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
|
398
|
+
<span class='ivar'>@name</span>
|
399
|
+
<span class='kw'>end</span></pre>
|
400
|
+
</td>
|
401
|
+
</tr>
|
402
|
+
</table>
|
403
|
+
</div>
|
404
|
+
|
405
|
+
</div>
|
406
|
+
|
407
|
+
|
408
|
+
</div>
|
409
|
+
|
410
|
+
<div id="footer">
|
411
|
+
Generated on Mon Jun 29 16:09:06 2015 by
|
412
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
413
|
+
0.8.7.6 (ruby-2.1.3).
|
414
|
+
</div>
|
415
|
+
|
416
|
+
</body>
|
417
|
+
</html>
|