boris 1.0.0.beta.1 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. data/CHANGELOG.md +11 -0
  2. data/README.md +114 -32
  3. data/Rakefile +19 -0
  4. data/lib/boris.rb +0 -13
  5. data/lib/boris/connectors.rb +25 -7
  6. data/lib/boris/connectors/snmp.rb +24 -4
  7. data/lib/boris/connectors/ssh.rb +32 -6
  8. data/lib/boris/connectors/wmi.rb +109 -54
  9. data/lib/boris/errors.rb +1 -1
  10. data/lib/boris/helpers/array.rb +62 -62
  11. data/lib/boris/helpers/constants.rb +22 -19
  12. data/lib/boris/helpers/hash.rb +7 -7
  13. data/lib/boris/helpers/network.rb +68 -0
  14. data/lib/boris/helpers/scrubber.rb +53 -51
  15. data/lib/boris/helpers/string.rb +148 -26
  16. data/lib/boris/lumberjack.rb +74 -47
  17. data/lib/boris/options.rb +28 -16
  18. data/lib/boris/profiler.rb +19 -0
  19. data/lib/boris/profilers/linux/redhat.rb +74 -0
  20. data/lib/boris/{profiles → profilers}/linux_core.rb +13 -4
  21. data/lib/boris/{profiles → profilers}/unix/solaris.rb +25 -15
  22. data/lib/boris/{profiles → profilers}/unix_core.rb +90 -85
  23. data/lib/boris/profilers/windows/windows2003.rb +11 -0
  24. data/lib/boris/profilers/windows/windows2008.rb +26 -0
  25. data/lib/boris/profilers/windows/windows2012.rb +11 -0
  26. data/lib/boris/{profiles → profilers}/windows_core.rb +36 -14
  27. data/lib/boris/structure.rb +173 -167
  28. data/lib/boris/target.rb +110 -168
  29. data/lib/boris/version.rb +3 -0
  30. metadata +32 -115
  31. data/boris.gemspec +0 -28
  32. data/doc/Array.html +0 -437
  33. data/doc/Boris.html +0 -230
  34. data/doc/Boris/ConnectionAlreadyActive.html +0 -123
  35. data/doc/Boris/ConnectionFailed.html +0 -127
  36. data/doc/Boris/Connector.html +0 -794
  37. data/doc/Boris/InvalidCredentials.html +0 -131
  38. data/doc/Boris/InvalidOption.html +0 -123
  39. data/doc/Boris/InvalidTargetName.html +0 -123
  40. data/doc/Boris/Lumberjack.html +0 -466
  41. data/doc/Boris/MissingCredentials.html +0 -123
  42. data/doc/Boris/NoActiveConnection.html +0 -123
  43. data/doc/Boris/NoProfileDetected.html +0 -123
  44. data/doc/Boris/Options.html +0 -783
  45. data/doc/Boris/Profiles.html +0 -117
  46. data/doc/Boris/Profiles/Linux.html +0 -1151
  47. data/doc/Boris/Profiles/RedHat.html +0 -875
  48. data/doc/Boris/Profiles/Solaris.html +0 -1230
  49. data/doc/Boris/Profiles/Structure.html +0 -2050
  50. data/doc/Boris/Profiles/UNIX.html +0 -893
  51. data/doc/Boris/Profiles/Windows.html +0 -1846
  52. data/doc/Boris/Profiles/Windows/Windows2003.html +0 -304
  53. data/doc/Boris/Profiles/Windows/Windows2008.html +0 -379
  54. data/doc/Boris/Profiles/Windows/Windows2012.html +0 -304
  55. data/doc/Boris/SNMPConnector.html +0 -512
  56. data/doc/Boris/SSHConnector.html +0 -633
  57. data/doc/Boris/Target.html +0 -2002
  58. data/doc/Boris/WMIConnector.html +0 -1134
  59. data/doc/BorisLogger.html +0 -217
  60. data/doc/Hash.html +0 -195
  61. data/doc/String.html +0 -1246
  62. data/doc/_index.html +0 -420
  63. data/doc/class_list.html +0 -53
  64. data/doc/css/common.css +0 -1
  65. data/doc/css/full_list.css +0 -57
  66. data/doc/css/style.css +0 -328
  67. data/doc/file.README.html +0 -183
  68. data/doc/file_list.html +0 -55
  69. data/doc/frames.html +0 -28
  70. data/doc/index.html +0 -183
  71. data/doc/js/app.js +0 -214
  72. data/doc/js/full_list.js +0 -173
  73. data/doc/js/jquery.js +0 -4
  74. data/doc/method_list.html +0 -1468
  75. data/doc/top-level-namespace.html +0 -126
  76. data/lib/boris/profiles/linux/redhat.rb +0 -77
  77. data/lib/boris/profiles/windows/windows2003.rb +0 -15
  78. data/lib/boris/profiles/windows/windows2008.rb +0 -23
  79. data/lib/boris/profiles/windows/windows2012.rb +0 -15
  80. data/test/connector_tests/test_snmp.rb +0 -35
  81. data/test/connector_tests/test_ssh.rb +0 -51
  82. data/test/connector_tests/test_wmi.rb +0 -129
  83. data/test/helper_tests/test_array.rb +0 -25
  84. data/test/helper_tests/test_hash.rb +0 -10
  85. data/test/helper_tests/test_string.rb +0 -136
  86. data/test/profile_tests/test_core_skeleton +0 -107
  87. data/test/profile_tests/test_linux_core.rb +0 -331
  88. data/test/profile_tests/test_redhat.rb +0 -134
  89. data/test/profile_tests/test_solaris.rb +0 -523
  90. data/test/profile_tests/test_unix_core.rb +0 -117
  91. data/test/profile_tests/test_windows.rb +0 -536
  92. data/test/setup_tests.rb +0 -14
  93. data/test/test_all.rb +0 -8
  94. data/test/test_options.rb +0 -44
  95. data/test/test_structure.rb +0 -136
  96. data/test/test_target.rb +0 -146
@@ -1,794 +0,0 @@
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: Boris::Connector
8
-
9
- &mdash; Documentation by YARD 0.8.3
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" 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#!" + escape(window.location.href);
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 (C)</a> &raquo;
35
- <span class='title'><span class='object_link'><a href="../Boris.html" title="Boris (module)">Boris</a></span></span>
36
- &raquo;
37
- <span class="title">Connector</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: Boris::Connector
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">Boris::Connector</li>
82
-
83
- </ul>
84
- <a href="#" class="inheritanceTree">show all</a>
85
-
86
- </dd>
87
-
88
-
89
-
90
-
91
-
92
-
93
- <dt class="r2">Includes:</dt>
94
- <dd class="r2"><span class='object_link'><a href="Lumberjack.html" title="Boris::Lumberjack (module)">Lumberjack</a></span></dd>
95
-
96
-
97
-
98
-
99
-
100
- <dt class="r1 last">Defined in:</dt>
101
- <dd class="r1 last">lib/boris/connectors.rb</dd>
102
-
103
- </dl>
104
- <div class="clear"></div>
105
-
106
- <div id="subclasses">
107
- <h2>Direct Known Subclasses</h2>
108
- <p class="children"><span class='object_link'><a href="SNMPConnector.html" title="Boris::SNMPConnector (class)">SNMPConnector</a></span>, <span class='object_link'><a href="SSHConnector.html" title="Boris::SSHConnector (class)">SSHConnector</a></span>, <span class='object_link'><a href="WMIConnector.html" title="Boris::WMIConnector (class)">WMIConnector</a></span></p>
109
- </div>
110
-
111
-
112
-
113
-
114
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
115
- <ul class="summary">
116
-
117
- <li class="public ">
118
- <span class="summary_signature">
119
-
120
- <a href="#connected-instance_method" title="#connected (instance method)">- (Object) <strong>connected</strong> </a>
121
-
122
-
123
-
124
- </span>
125
-
126
-
127
-
128
-
129
- <span class="note title readonly">readonly</span>
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
- <span class="summary_desc"><div class='inline'>
140
- <p>Returns the value of attribute connected.</p>
141
- </div></span>
142
-
143
- </li>
144
-
145
-
146
- <li class="public ">
147
- <span class="summary_signature">
148
-
149
- <a href="#host-instance_method" title="#host (instance method)">- (Object) <strong>host</strong> </a>
150
-
151
-
152
-
153
- </span>
154
-
155
-
156
-
157
-
158
- <span class="note title readonly">readonly</span>
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
- <span class="summary_desc"><div class='inline'>
169
- <p>Returns the value of attribute host.</p>
170
- </div></span>
171
-
172
- </li>
173
-
174
-
175
- <li class="public ">
176
- <span class="summary_signature">
177
-
178
- <a href="#options-instance_method" title="#options (instance method)">- (Object) <strong>options</strong> </a>
179
-
180
-
181
-
182
- </span>
183
-
184
-
185
-
186
-
187
- <span class="note title readonly">readonly</span>
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
- <span class="summary_desc"><div class='inline'>
198
- <p>Returns the value of attribute options.</p>
199
- </div></span>
200
-
201
- </li>
202
-
203
-
204
- <li class="public ">
205
- <span class="summary_signature">
206
-
207
- <a href="#reconnectable-instance_method" title="#reconnectable (instance method)">- (Object) <strong>reconnectable</strong> </a>
208
-
209
-
210
-
211
- </span>
212
-
213
-
214
-
215
-
216
- <span class="note title readonly">readonly</span>
217
-
218
-
219
-
220
-
221
-
222
-
223
-
224
-
225
-
226
- <span class="summary_desc"><div class='inline'>
227
- <p>Returns the value of attribute reconnectable.</p>
228
- </div></span>
229
-
230
- </li>
231
-
232
-
233
- </ul>
234
-
235
-
236
-
237
-
238
-
239
- <h3 class="inherited">Attributes included from <span class='object_link'><a href="Lumberjack.html" title="Boris::Lumberjack (module)">Lumberjack</a></span></h3>
240
- <p class="inherited"><span class='object_link'><a href="Lumberjack.html#logger-instance_method" title="Boris::Lumberjack#logger (method)">#logger</a></span></p>
241
-
242
-
243
-
244
- <h2>
245
- Instance Method Summary
246
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
247
- </h2>
248
-
249
- <ul class="summary">
250
-
251
- <li class="public ">
252
- <span class="summary_signature">
253
-
254
- <a href="#connected%3F-instance_method" title="#connected? (instance method)">- (Boolean) <strong>connected?</strong> </a>
255
-
256
-
257
-
258
- </span>
259
-
260
-
261
-
262
-
263
-
264
-
265
-
266
-
267
-
268
- <span class="summary_desc"><div class='inline'></div></span>
269
-
270
- </li>
271
-
272
-
273
- <li class="public ">
274
- <span class="summary_signature">
275
-
276
- <a href="#disconnect-instance_method" title="#disconnect (instance method)">- (Object) <strong>disconnect</strong> </a>
277
-
278
-
279
-
280
- </span>
281
-
282
-
283
-
284
-
285
-
286
-
287
-
288
-
289
-
290
- <span class="summary_desc"><div class='inline'></div></span>
291
-
292
- </li>
293
-
294
-
295
- <li class="public ">
296
- <span class="summary_signature">
297
-
298
- <a href="#establish_connection-instance_method" title="#establish_connection (instance method)">- (Object) <strong>establish_connection</strong> </a>
299
-
300
-
301
-
302
- </span>
303
-
304
-
305
-
306
-
307
-
308
-
309
-
310
-
311
-
312
- <span class="summary_desc"><div class='inline'></div></span>
313
-
314
- </li>
315
-
316
-
317
- <li class="public ">
318
- <span class="summary_signature">
319
-
320
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Connector) <strong>initialize</strong>(host, cred, options, logger = nil) </a>
321
-
322
-
323
-
324
- </span>
325
-
326
-
327
- <span class="note title constructor">constructor</span>
328
-
329
-
330
-
331
-
332
-
333
-
334
-
335
-
336
- <span class="summary_desc"><div class='inline'>
337
- <p>A new instance of Connector.</p>
338
- </div></span>
339
-
340
- </li>
341
-
342
-
343
- <li class="public ">
344
- <span class="summary_signature">
345
-
346
- <a href="#values_at-instance_method" title="#values_at (instance method)">- (Object) <strong>values_at</strong>(request, limit) </a>
347
-
348
-
349
-
350
- </span>
351
-
352
-
353
-
354
-
355
-
356
-
357
-
358
-
359
-
360
- <span class="summary_desc"><div class='inline'></div></span>
361
-
362
- </li>
363
-
364
-
365
- </ul>
366
-
367
-
368
-
369
-
370
-
371
-
372
-
373
-
374
-
375
-
376
-
377
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Lumberjack.html" title="Boris::Lumberjack (module)">Lumberjack</a></span></h3>
378
- <p class="inherited"><span class='object_link'><a href="Lumberjack.html#debug-instance_method" title="Boris::Lumberjack#debug (method)">#debug</a></span>, <span class='object_link'><a href="Lumberjack.html#error-instance_method" title="Boris::Lumberjack#error (method)">#error</a></span>, <span class='object_link'><a href="Lumberjack.html#fatal-instance_method" title="Boris::Lumberjack#fatal (method)">#fatal</a></span>, <span class='object_link'><a href="Lumberjack.html#info-instance_method" title="Boris::Lumberjack#info (method)">#info</a></span>, <span class='object_link'><a href="Lumberjack.html#warn-instance_method" title="Boris::Lumberjack#warn (method)">#warn</a></span></p>
379
- <div id="constructor_details" class="method_details_list">
380
- <h2>Constructor Details</h2>
381
-
382
- <div class="method_details first">
383
- <h3 class="signature first" id="initialize-instance_method">
384
-
385
- - (<tt><span class='object_link'><a href="" title="Boris::Connector (class)">Connector</a></span></tt>) <strong>initialize</strong>(host, cred, options, logger = nil)
386
-
387
-
388
-
389
-
390
-
391
- </h3><div class="docstring">
392
- <div class="discussion">
393
-
394
- <p>A new instance of Connector</p>
395
-
396
-
397
- </div>
398
- </div>
399
- <div class="tags">
400
-
401
-
402
- </div><table class="source_code">
403
- <tr>
404
- <td>
405
- <pre class="lines">
406
-
407
-
408
- 10
409
- 11
410
- 12
411
- 13
412
- 14
413
- 15
414
- 16
415
- 17
416
- 18
417
- 19
418
- 20</pre>
419
- </td>
420
- <td>
421
- <pre class="code"><span class="info file"># File 'lib/boris/connectors.rb', line 10</span>
422
-
423
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_host'>host</span><span class='comma'>,</span> <span class='id identifier rubyid_cred'>cred</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='id identifier rubyid_logger'>logger</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
424
- <span class='id identifier rubyid_debug'>debug</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>creating connection object</span><span class='tstring_end'>'</span></span>
425
-
426
- <span class='ivar'>@host</span> <span class='op'>=</span> <span class='id identifier rubyid_host'>host</span>
427
- <span class='ivar'>@user</span> <span class='op'>=</span> <span class='id identifier rubyid_cred'>cred</span><span class='lbracket'>[</span><span class='symbol'>:user</span><span class='rbracket'>]</span>
428
- <span class='ivar'>@password</span> <span class='op'>=</span> <span class='id identifier rubyid_cred'>cred</span><span class='lbracket'>[</span><span class='symbol'>:password</span><span class='rbracket'>]</span>
429
- <span class='ivar'>@connected</span> <span class='op'>=</span> <span class='kw'>false</span>
430
- <span class='ivar'>@reconnectable</span> <span class='op'>=</span> <span class='kw'>true</span>
431
-
432
- <span class='ivar'>@logger</span> <span class='op'>=</span> <span class='id identifier rubyid_logger'>logger</span>
433
- <span class='kw'>end</span></pre>
434
- </td>
435
- </tr>
436
- </table>
437
- </div>
438
-
439
- </div>
440
-
441
- <div id="instance_attr_details" class="attr_details">
442
- <h2>Instance Attribute Details</h2>
443
-
444
-
445
- <span id=""></span>
446
- <div class="method_details first">
447
- <h3 class="signature first" id="connected-instance_method">
448
-
449
- - (<tt>Object</tt>) <strong>connected</strong> <span class="extras">(readonly)</span>
450
-
451
-
452
-
453
-
454
-
455
- </h3><div class="docstring">
456
- <div class="discussion">
457
-
458
- <p>Returns the value of attribute connected</p>
459
-
460
-
461
- </div>
462
- </div>
463
- <div class="tags">
464
-
465
-
466
- </div><table class="source_code">
467
- <tr>
468
- <td>
469
- <pre class="lines">
470
-
471
-
472
- 5
473
- 6
474
- 7</pre>
475
- </td>
476
- <td>
477
- <pre class="code"><span class="info file"># File 'lib/boris/connectors.rb', line 5</span>
478
-
479
- <span class='kw'>def</span> <span class='id identifier rubyid_connected'>connected</span>
480
- <span class='ivar'>@connected</span>
481
- <span class='kw'>end</span></pre>
482
- </td>
483
- </tr>
484
- </table>
485
- </div>
486
-
487
-
488
- <span id=""></span>
489
- <div class="method_details ">
490
- <h3 class="signature " id="host-instance_method">
491
-
492
- - (<tt>Object</tt>) <strong>host</strong> <span class="extras">(readonly)</span>
493
-
494
-
495
-
496
-
497
-
498
- </h3><div class="docstring">
499
- <div class="discussion">
500
-
501
- <p>Returns the value of attribute host</p>
502
-
503
-
504
- </div>
505
- </div>
506
- <div class="tags">
507
-
508
-
509
- </div><table class="source_code">
510
- <tr>
511
- <td>
512
- <pre class="lines">
513
-
514
-
515
- 6
516
- 7
517
- 8</pre>
518
- </td>
519
- <td>
520
- <pre class="code"><span class="info file"># File 'lib/boris/connectors.rb', line 6</span>
521
-
522
- <span class='kw'>def</span> <span class='id identifier rubyid_host'>host</span>
523
- <span class='ivar'>@host</span>
524
- <span class='kw'>end</span></pre>
525
- </td>
526
- </tr>
527
- </table>
528
- </div>
529
-
530
-
531
- <span id=""></span>
532
- <div class="method_details ">
533
- <h3 class="signature " id="options-instance_method">
534
-
535
- - (<tt>Object</tt>) <strong>options</strong> <span class="extras">(readonly)</span>
536
-
537
-
538
-
539
-
540
-
541
- </h3><div class="docstring">
542
- <div class="discussion">
543
-
544
- <p>Returns the value of attribute options</p>
545
-
546
-
547
- </div>
548
- </div>
549
- <div class="tags">
550
-
551
-
552
- </div><table class="source_code">
553
- <tr>
554
- <td>
555
- <pre class="lines">
556
-
557
-
558
- 7
559
- 8
560
- 9</pre>
561
- </td>
562
- <td>
563
- <pre class="code"><span class="info file"># File 'lib/boris/connectors.rb', line 7</span>
564
-
565
- <span class='kw'>def</span> <span class='id identifier rubyid_options'>options</span>
566
- <span class='ivar'>@options</span>
567
- <span class='kw'>end</span></pre>
568
- </td>
569
- </tr>
570
- </table>
571
- </div>
572
-
573
-
574
- <span id=""></span>
575
- <div class="method_details ">
576
- <h3 class="signature " id="reconnectable-instance_method">
577
-
578
- - (<tt>Object</tt>) <strong>reconnectable</strong> <span class="extras">(readonly)</span>
579
-
580
-
581
-
582
-
583
-
584
- </h3><div class="docstring">
585
- <div class="discussion">
586
-
587
- <p>Returns the value of attribute reconnectable</p>
588
-
589
-
590
- </div>
591
- </div>
592
- <div class="tags">
593
-
594
-
595
- </div><table class="source_code">
596
- <tr>
597
- <td>
598
- <pre class="lines">
599
-
600
-
601
- 8
602
- 9
603
- 10</pre>
604
- </td>
605
- <td>
606
- <pre class="code"><span class="info file"># File 'lib/boris/connectors.rb', line 8</span>
607
-
608
- <span class='kw'>def</span> <span class='id identifier rubyid_reconnectable'>reconnectable</span>
609
- <span class='ivar'>@reconnectable</span>
610
- <span class='kw'>end</span></pre>
611
- </td>
612
- </tr>
613
- </table>
614
- </div>
615
-
616
- </div>
617
-
618
-
619
- <div id="instance_method_details" class="method_details_list">
620
- <h2>Instance Method Details</h2>
621
-
622
-
623
- <div class="method_details first">
624
- <h3 class="signature first" id="connected?-instance_method">
625
-
626
- - (<tt>Boolean</tt>) <strong>connected?</strong>
627
-
628
-
629
-
630
-
631
-
632
- </h3><div class="docstring">
633
- <div class="discussion">
634
-
635
-
636
- </div>
637
- </div>
638
- <div class="tags">
639
-
640
- <p class="tag_title">Returns:</p>
641
- <ul class="return">
642
-
643
- <li>
644
-
645
-
646
- <span class='type'>(<tt>Boolean</tt>)</span>
647
-
648
-
649
-
650
- </li>
651
-
652
- </ul>
653
-
654
- </div><table class="source_code">
655
- <tr>
656
- <td>
657
- <pre class="lines">
658
-
659
-
660
- 22
661
- 23
662
- 24</pre>
663
- </td>
664
- <td>
665
- <pre class="code"><span class="info file"># File 'lib/boris/connectors.rb', line 22</span>
666
-
667
- <span class='kw'>def</span> <span class='id identifier rubyid_connected?'>connected?</span>
668
- <span class='ivar'>@connected</span>
669
- <span class='kw'>end</span></pre>
670
- </td>
671
- </tr>
672
- </table>
673
- </div>
674
-
675
- <div class="method_details ">
676
- <h3 class="signature " id="disconnect-instance_method">
677
-
678
- - (<tt>Object</tt>) <strong>disconnect</strong>
679
-
680
-
681
-
682
-
683
-
684
- </h3><table class="source_code">
685
- <tr>
686
- <td>
687
- <pre class="lines">
688
-
689
-
690
- 26
691
- 27
692
- 28
693
- 29</pre>
694
- </td>
695
- <td>
696
- <pre class="code"><span class="info file"># File 'lib/boris/connectors.rb', line 26</span>
697
-
698
- <span class='kw'>def</span> <span class='id identifier rubyid_disconnect'>disconnect</span>
699
- <span class='id identifier rubyid_debug'>debug</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>closing connection to host</span><span class='tstring_end'>'</span></span>
700
- <span class='ivar'>@connected</span> <span class='op'>=</span> <span class='kw'>false</span>
701
- <span class='kw'>end</span></pre>
702
- </td>
703
- </tr>
704
- </table>
705
- </div>
706
-
707
- <div class="method_details ">
708
- <h3 class="signature " id="establish_connection-instance_method">
709
-
710
- - (<tt>Object</tt>) <strong>establish_connection</strong>
711
-
712
-
713
-
714
-
715
-
716
- </h3><table class="source_code">
717
- <tr>
718
- <td>
719
- <pre class="lines">
720
-
721
-
722
- 31
723
- 32
724
- 33</pre>
725
- </td>
726
- <td>
727
- <pre class="code"><span class="info file"># File 'lib/boris/connectors.rb', line 31</span>
728
-
729
- <span class='kw'>def</span> <span class='id identifier rubyid_establish_connection'>establish_connection</span>
730
- <span class='id identifier rubyid_debug'>debug</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>attempting connection</span><span class='tstring_end'>'</span></span>
731
- <span class='kw'>end</span></pre>
732
- </td>
733
- </tr>
734
- </table>
735
- </div>
736
-
737
- <div class="method_details ">
738
- <h3 class="signature " id="values_at-instance_method">
739
-
740
- - (<tt>Object</tt>) <strong>values_at</strong>(request, limit)
741
-
742
-
743
-
744
-
745
-
746
- </h3><table class="source_code">
747
- <tr>
748
- <td>
749
- <pre class="lines">
750
-
751
-
752
- 35
753
- 36
754
- 37
755
- 38
756
- 39
757
- 40
758
- 41
759
- 42
760
- 43
761
- 44
762
- 45</pre>
763
- </td>
764
- <td>
765
- <pre class="code"><span class="info file"># File 'lib/boris/connectors.rb', line 35</span>
766
-
767
- <span class='kw'>def</span> <span class='id identifier rubyid_values_at'>values_at</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='comma'>,</span> <span class='id identifier rubyid_limit'>limit</span><span class='rparen'>)</span>
768
- <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_limit'>limit</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>Integer</span><span class='rparen'>)</span>
769
- <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>non-integer limit specified (</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_limit'>limit</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='rbrace'>}</span><span class='tstring_content'>)</span><span class='tstring_end'>&quot;</span></span>
770
- <span class='kw'>elsif</span> <span class='id identifier rubyid_limit'>limit</span> <span class='op'>&lt;</span> <span class='int'>1</span>
771
- <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>specified limit must be greater than 1 (or nil for no limit) (</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_limit'>limit</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='rbrace'>}</span><span class='tstring_content'>)</span><span class='tstring_end'>&quot;</span></span>
772
- <span class='kw'>end</span> <span class='kw'>unless</span> <span class='id identifier rubyid_limit'>limit</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
773
-
774
- <span class='id identifier rubyid_amount'>amount</span> <span class='op'>=</span> <span class='id identifier rubyid_limit'>limit</span> <span class='op'>==</span> <span class='int'>1</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>single value</span><span class='tstring_end'>'</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>multiple values</span><span class='tstring_end'>'</span></span>
775
-
776
- <span class='id identifier rubyid_debug'>debug</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>issuing request for </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_amount'>amount</span><span class='rbrace'>}</span><span class='tstring_content'> (</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='rbrace'>}</span><span class='tstring_content'>)</span><span class='tstring_end'>&quot;</span></span>
777
- <span class='kw'>end</span></pre>
778
- </td>
779
- </tr>
780
- </table>
781
- </div>
782
-
783
- </div>
784
-
785
- </div>
786
-
787
- <div id="footer">
788
- Generated on Sun Feb 3 16:32:43 2013 by
789
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
790
- 0.8.3 (ruby-1.9.3).
791
- </div>
792
-
793
- </body>
794
- </html>