rcmd 1.5.7 → 1.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec_status +7 -7
- data/Gemfile.lock +17 -9
- data/README.md +18 -4
- data/doc/rdocs/OptionParser.html +44 -72
- data/doc/rdocs/README_md.html +117 -129
- data/doc/rdocs/Rcmd.html +69 -94
- data/doc/rdocs/created.rid +5 -5
- data/doc/rdocs/css/fonts.css +167 -0
- data/doc/rdocs/{rdoc.css → css/rdoc.css} +237 -242
- data/doc/rdocs/fonts/Lato-Light.ttf +0 -0
- data/doc/rdocs/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/rdocs/fonts/Lato-Regular.ttf +0 -0
- data/doc/rdocs/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/rdocs/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/rdocs/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/rdocs/index.html +107 -102
- data/doc/rdocs/js/darkfish.js +33 -27
- data/doc/rdocs/js/navigation.js.gz +0 -0
- data/doc/rdocs/js/search.js +20 -5
- data/doc/rdocs/js/search_index.js.gz +0 -0
- data/doc/rdocs/js/searcher.js +3 -2
- data/doc/rdocs/js/searcher.js.gz +0 -0
- data/doc/rdocs/table_of_contents.html +26 -25
- data/exe/rcmd +12 -4
- data/lib/rcmd/version.rb +1 -1
- data/rcmd.gemspec +1 -1
- metadata +51 -27
data/doc/rdocs/Rcmd.html
CHANGED
@@ -2,116 +2,89 @@
|
|
2
2
|
|
3
3
|
<html>
|
4
4
|
<head>
|
5
|
-
<meta
|
5
|
+
<meta charset="UTF-8">
|
6
6
|
|
7
7
|
<title>module Rcmd - RDoc Documentation</title>
|
8
8
|
|
9
|
-
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
-
|
11
9
|
<script type="text/javascript">
|
12
10
|
var rdoc_rel_prefix = "./";
|
11
|
+
var index_rel_prefix = "./";
|
13
12
|
</script>
|
14
13
|
|
15
|
-
<script
|
16
|
-
<script
|
17
|
-
|
18
|
-
<
|
19
|
-
<
|
20
|
-
|
14
|
+
<script src="./js/jquery.js"></script>
|
15
|
+
<script src="./js/darkfish.js"></script>
|
16
|
+
|
17
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
18
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
19
|
+
|
21
20
|
|
22
21
|
|
23
|
-
<body id="top" class="module">
|
24
|
-
<nav
|
25
|
-
<
|
26
|
-
|
27
|
-
|
22
|
+
<body id="top" role="document" class="module">
|
23
|
+
<nav role="navigation">
|
24
|
+
<div id="project-navigation">
|
25
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
26
|
+
<h2>
|
27
|
+
<a href="./index.html" rel="home">Home</a>
|
28
|
+
</h2>
|
29
|
+
|
30
|
+
<div id="table-of-contents-navigation">
|
31
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
28
32
|
<a href="./table_of_contents.html#classes">Classes</a>
|
29
33
|
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
-
</
|
31
|
-
</
|
32
|
-
|
34
|
+
</div>
|
35
|
+
</div>
|
33
36
|
|
34
|
-
|
37
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
35
38
|
<form action="#" method="get" accept-charset="utf-8">
|
36
|
-
<
|
37
|
-
<input
|
39
|
+
<div id="search-field-wrapper">
|
40
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
41
|
+
aria-autocomplete="list" aria-controls="search-results"
|
42
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
38
43
|
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
-
</
|
40
|
-
</form>
|
44
|
+
</div>
|
41
45
|
|
42
|
-
|
43
|
-
|
46
|
+
<ul id="search-results" aria-label="Search Results"
|
47
|
+
aria-busy="false" aria-expanded="false"
|
48
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
49
|
+
</form>
|
50
|
+
</div>
|
44
51
|
|
52
|
+
</div>
|
45
53
|
|
46
54
|
|
47
55
|
|
48
|
-
<div id="file-metadata">
|
49
|
-
<nav id="file-list-section" class="section">
|
50
|
-
<h3 class="section-header">Defined In</h3>
|
51
|
-
<ul>
|
52
|
-
<li>lib/rcmd.rb
|
53
|
-
<li>lib/rcmd/version.rb
|
54
|
-
</ul>
|
55
|
-
</nav>
|
56
|
-
|
57
|
-
|
58
|
-
</div>
|
59
|
-
|
60
56
|
<div id="class-metadata">
|
61
57
|
|
62
58
|
|
63
59
|
|
64
60
|
|
65
61
|
<!-- Method Quickref -->
|
66
|
-
<
|
67
|
-
<h3
|
62
|
+
<div id="method-list-section" class="nav-section">
|
63
|
+
<h3>Methods</h3>
|
68
64
|
|
69
|
-
<ul class="link-list">
|
65
|
+
<ul class="link-list" role="directory">
|
70
66
|
|
71
67
|
<li ><a href="#method-c-run_command">::run_command</a>
|
72
68
|
|
73
69
|
</ul>
|
74
|
-
</
|
75
|
-
|
76
|
-
</div>
|
77
|
-
|
78
|
-
<div id="project-metadata">
|
79
|
-
<nav id="fileindex-section" class="section project-section">
|
80
|
-
<h3 class="section-header">Pages</h3>
|
81
|
-
|
82
|
-
<ul>
|
83
|
-
|
84
|
-
<li class="file"><a href="./README_md.html">README</a>
|
85
|
-
|
86
|
-
</ul>
|
87
|
-
</nav>
|
88
|
-
|
89
|
-
<nav id="classindex-section" class="section project-section">
|
90
|
-
<h3 class="section-header">Class and Module Index</h3>
|
91
|
-
|
92
|
-
<ul class="link-list">
|
93
|
-
|
94
|
-
<li><a href="./OptionParser.html">OptionParser</a>
|
95
|
-
|
96
|
-
<li><a href="./Rcmd.html">Rcmd</a>
|
97
|
-
|
98
|
-
</ul>
|
99
|
-
</nav>
|
70
|
+
</div>
|
100
71
|
|
101
72
|
</div>
|
102
73
|
</nav>
|
103
74
|
|
104
|
-
<
|
105
|
-
<h1 class="module">
|
75
|
+
<main role="main" aria-labelledby="module-Rcmd">
|
76
|
+
<h1 id="module-Rcmd" class="module">
|
77
|
+
module Rcmd
|
78
|
+
</h1>
|
106
79
|
|
107
|
-
<
|
80
|
+
<section class="description">
|
108
81
|
|
109
82
|
<p>This module is for parellel remote (SSH) execution of a single command
|
110
83
|
string on Multiple hosts. The module itself consists of one method for
|
111
84
|
execution (Rcmd.run_command) which does not accept any arguments. The
|
112
85
|
required arguments are set as variables through the use of accessors.</p>
|
113
86
|
|
114
|
-
</
|
87
|
+
</section>
|
115
88
|
|
116
89
|
|
117
90
|
|
@@ -122,14 +95,15 @@ required arguments are set as variables through the use of accessors.</p>
|
|
122
95
|
|
123
96
|
|
124
97
|
|
125
|
-
|
126
|
-
|
127
|
-
|
98
|
+
<section class="constants-list">
|
99
|
+
<header>
|
100
|
+
<h3>Constants</h3>
|
101
|
+
</header>
|
128
102
|
<dl>
|
129
103
|
|
130
104
|
<dt id="VERSION">VERSION
|
131
105
|
|
132
|
-
<dd
|
106
|
+
<dd><p><code>VERSION</code> - Version number string</p>
|
133
107
|
|
134
108
|
|
135
109
|
</dl>
|
@@ -137,9 +111,10 @@ required arguments are set as variables through the use of accessors.</p>
|
|
137
111
|
|
138
112
|
|
139
113
|
|
140
|
-
|
141
|
-
|
142
|
-
|
114
|
+
<section class="attribute-method-details" class="method-section">
|
115
|
+
<header>
|
116
|
+
<h3>Attributes</h3>
|
117
|
+
</header>
|
143
118
|
|
144
119
|
|
145
120
|
<div id="attribute-c-command" class="method-detail">
|
@@ -234,13 +209,14 @@ required arguments are set as variables through the use of accessors.</p>
|
|
234
209
|
</div>
|
235
210
|
</div>
|
236
211
|
|
237
|
-
</section
|
212
|
+
</section>
|
238
213
|
|
239
214
|
|
240
|
-
<!-- Methods -->
|
241
215
|
|
242
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section
|
243
|
-
|
216
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
217
|
+
<header>
|
218
|
+
<h3>Public Class Methods</h3>
|
219
|
+
</header>
|
244
220
|
|
245
221
|
|
246
222
|
<div id="method-c-run_command" class="method-detail ">
|
@@ -266,7 +242,7 @@ threads is greater then the number of hosts remaining in the host list. If
|
|
266
242
|
false (threads > num hosts) then the number of remaining hosts becomes
|
267
243
|
the thread count. This prevents spawning of unneeded threads.</p>
|
268
244
|
|
269
|
-
<h4 id="method-c-run_command-label-Manditory+values+to+be+set">Manditory values to be set<span><a href="#method-c-run_command-label-Manditory+values+to+be+set">¶</a> <a href="#
|
245
|
+
<h4 id="method-c-run_command-label-Manditory+values+to+be+set">Manditory values to be set<span><a href="#method-c-run_command-label-Manditory+values+to+be+set">¶</a> <a href="#top">↑</a></span></h4>
|
270
246
|
<ul><li>
|
271
247
|
<p><code>:user</code> - User to run the command as</p>
|
272
248
|
</li><li>
|
@@ -277,17 +253,17 @@ the thread count. This prevents spawning of unneeded threads.</p>
|
|
277
253
|
<p><code>:nthreads</code> - Preferred max number of threads</p>
|
278
254
|
</li></ul>
|
279
255
|
|
280
|
-
<h4 id="method-c-run_command-label-Optional+Values">Optional Values<span><a href="#method-c-run_command-label-Optional+Values">¶</a> <a href="#
|
256
|
+
<h4 id="method-c-run_command-label-Optional+Values">Optional Values<span><a href="#method-c-run_command-label-Optional+Values">¶</a> <a href="#top">↑</a></span></h4>
|
281
257
|
<ul><li>
|
282
258
|
<p><code>:quiet</code> - Do not print to STDOUT. STDERR is always printed</p>
|
283
259
|
</li></ul>
|
284
260
|
|
285
|
-
<h4 id="method-c-run_command-label-Specifically+for+the+method+only">Specifically for the method only<span><a href="#method-c-run_command-label-Specifically+for+the+method+only">¶</a> <a href="#
|
261
|
+
<h4 id="method-c-run_command-label-Specifically+for+the+method+only">Specifically for the method only<span><a href="#method-c-run_command-label-Specifically+for+the+method+only">¶</a> <a href="#top">↑</a></span></h4>
|
286
262
|
<ul><li>
|
287
263
|
<p><code>:threads</code> - Array of the current threads</p>
|
288
264
|
</li></ul>
|
289
265
|
|
290
|
-
<h4 id="method-c-run_command-label-Example">Example<span><a href="#method-c-run_command-label-Example">¶</a> <a href="#
|
266
|
+
<h4 id="method-c-run_command-label-Example">Example<span><a href="#method-c-run_command-label-Example">¶</a> <a href="#top">↑</a></span></h4>
|
291
267
|
|
292
268
|
<pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">'rcmd'</span>
|
293
269
|
<span class="ruby-constant">Rcmd</span>.<span class="ruby-identifier">host_list</span>= [<span class="ruby-string">"host1"</span>, <span class="ruby-string">"host2"</span>, <span class="ruby-string">"host3"</span>, <span class="ruby-string">"host4"</span>, <span class="ruby-string">"host 5"</span>, <span class="ruby-string">"host6"</span>]
|
@@ -351,26 +327,25 @@ the thread count. This prevents spawning of unneeded threads.</p>
|
|
351
327
|
<span class="ruby-identifier">sleep</span> <span class="ruby-value">1</span>
|
352
328
|
<span class="ruby-keyword">end</span>
|
353
329
|
<span class="ruby-keyword">end</span></pre>
|
354
|
-
</div
|
330
|
+
</div>
|
355
331
|
|
356
332
|
</div>
|
357
333
|
|
358
334
|
|
359
335
|
|
360
336
|
|
361
|
-
</div
|
337
|
+
</div>
|
362
338
|
|
363
339
|
|
364
|
-
</section
|
340
|
+
</section>
|
365
341
|
|
366
|
-
</section
|
367
|
-
|
368
|
-
</div><!-- documentation -->
|
342
|
+
</section>
|
343
|
+
</main>
|
369
344
|
|
370
345
|
|
371
|
-
<footer id="validator-badges">
|
372
|
-
<p><a href="http://validator.w3.org/check/referer">
|
373
|
-
<p>Generated by <a href="https://github.
|
374
|
-
<p>
|
346
|
+
<footer id="validator-badges" role="contentinfo">
|
347
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
348
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
|
349
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
375
350
|
</footer>
|
376
351
|
|
data/doc/rdocs/created.rid
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
|
2
|
-
README.md
|
3
|
-
lib/rcmd.rb
|
4
|
-
lib/rcmd/version.rb
|
5
|
-
exe/rcmd
|
1
|
+
Wed, 04 Oct 2017 13:18:27 +0000
|
2
|
+
README.md Wed, 04 Oct 2017 13:14:39 +0000
|
3
|
+
lib/rcmd.rb Wed, 04 Oct 2017 11:31:32 +0000
|
4
|
+
lib/rcmd/version.rb Wed, 04 Oct 2017 12:27:06 +0000
|
5
|
+
exe/rcmd Wed, 04 Oct 2017 12:55:00 +0000
|
@@ -0,0 +1,167 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/),
|
3
|
+
* with Reserved Font Name "Source". All Rights Reserved. Source is a
|
4
|
+
* trademark of Adobe Systems Incorporated in the United States and/or other
|
5
|
+
* countries.
|
6
|
+
*
|
7
|
+
* This Font Software is licensed under the SIL Open Font License, Version
|
8
|
+
* 1.1.
|
9
|
+
*
|
10
|
+
* This license is copied below, and is also available with a FAQ at:
|
11
|
+
* http://scripts.sil.org/OFL
|
12
|
+
*/
|
13
|
+
|
14
|
+
@font-face {
|
15
|
+
font-family: "Source Code Pro";
|
16
|
+
font-style: normal;
|
17
|
+
font-weight: 400;
|
18
|
+
src: local("Source Code Pro"),
|
19
|
+
local("SourceCodePro-Regular"),
|
20
|
+
url("../fonts/SourceCodePro-Regular.ttf") format("truetype");
|
21
|
+
}
|
22
|
+
|
23
|
+
@font-face {
|
24
|
+
font-family: "Source Code Pro";
|
25
|
+
font-style: normal;
|
26
|
+
font-weight: 700;
|
27
|
+
src: local("Source Code Pro Bold"),
|
28
|
+
local("SourceCodePro-Bold"),
|
29
|
+
url("../fonts/SourceCodePro-Bold.ttf") format("truetype");
|
30
|
+
}
|
31
|
+
|
32
|
+
/*
|
33
|
+
* Copyright (c) 2010, Łukasz Dziedzic (dziedzic@typoland.com),
|
34
|
+
* with Reserved Font Name Lato.
|
35
|
+
*
|
36
|
+
* This Font Software is licensed under the SIL Open Font License, Version
|
37
|
+
* 1.1.
|
38
|
+
*
|
39
|
+
* This license is copied below, and is also available with a FAQ at:
|
40
|
+
* http://scripts.sil.org/OFL
|
41
|
+
*/
|
42
|
+
|
43
|
+
@font-face {
|
44
|
+
font-family: "Lato";
|
45
|
+
font-style: normal;
|
46
|
+
font-weight: 300;
|
47
|
+
src: local("Lato Light"),
|
48
|
+
local("Lato-Light"),
|
49
|
+
url("../fonts/Lato-Light.ttf") format("truetype");
|
50
|
+
}
|
51
|
+
|
52
|
+
@font-face {
|
53
|
+
font-family: "Lato";
|
54
|
+
font-style: italic;
|
55
|
+
font-weight: 300;
|
56
|
+
src: local("Lato Light Italic"),
|
57
|
+
local("Lato-LightItalic"),
|
58
|
+
url("../fonts/Lato-LightItalic.ttf") format("truetype");
|
59
|
+
}
|
60
|
+
|
61
|
+
@font-face {
|
62
|
+
font-family: "Lato";
|
63
|
+
font-style: normal;
|
64
|
+
font-weight: 700;
|
65
|
+
src: local("Lato Regular"),
|
66
|
+
local("Lato-Regular"),
|
67
|
+
url("../fonts/Lato-Regular.ttf") format("truetype");
|
68
|
+
}
|
69
|
+
|
70
|
+
@font-face {
|
71
|
+
font-family: "Lato";
|
72
|
+
font-style: italic;
|
73
|
+
font-weight: 700;
|
74
|
+
src: local("Lato Italic"),
|
75
|
+
local("Lato-Italic"),
|
76
|
+
url("../fonts/Lato-RegularItalic.ttf") format("truetype");
|
77
|
+
}
|
78
|
+
|
79
|
+
/*
|
80
|
+
* -----------------------------------------------------------
|
81
|
+
* SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
82
|
+
* -----------------------------------------------------------
|
83
|
+
*
|
84
|
+
* PREAMBLE
|
85
|
+
* The goals of the Open Font License (OFL) are to stimulate worldwide
|
86
|
+
* development of collaborative font projects, to support the font creation
|
87
|
+
* efforts of academic and linguistic communities, and to provide a free and
|
88
|
+
* open framework in which fonts may be shared and improved in partnership
|
89
|
+
* with others.
|
90
|
+
*
|
91
|
+
* The OFL allows the licensed fonts to be used, studied, modified and
|
92
|
+
* redistributed freely as long as they are not sold by themselves. The
|
93
|
+
* fonts, including any derivative works, can be bundled, embedded,
|
94
|
+
* redistributed and/or sold with any software provided that any reserved
|
95
|
+
* names are not used by derivative works. The fonts and derivatives,
|
96
|
+
* however, cannot be released under any other type of license. The
|
97
|
+
* requirement for fonts to remain under this license does not apply
|
98
|
+
* to any document created using the fonts or their derivatives.
|
99
|
+
*
|
100
|
+
* DEFINITIONS
|
101
|
+
* "Font Software" refers to the set of files released by the Copyright
|
102
|
+
* Holder(s) under this license and clearly marked as such. This may
|
103
|
+
* include source files, build scripts and documentation.
|
104
|
+
*
|
105
|
+
* "Reserved Font Name" refers to any names specified as such after the
|
106
|
+
* copyright statement(s).
|
107
|
+
*
|
108
|
+
* "Original Version" refers to the collection of Font Software components as
|
109
|
+
* distributed by the Copyright Holder(s).
|
110
|
+
*
|
111
|
+
* "Modified Version" refers to any derivative made by adding to, deleting,
|
112
|
+
* or substituting -- in part or in whole -- any of the components of the
|
113
|
+
* Original Version, by changing formats or by porting the Font Software to a
|
114
|
+
* new environment.
|
115
|
+
*
|
116
|
+
* "Author" refers to any designer, engineer, programmer, technical
|
117
|
+
* writer or other person who contributed to the Font Software.
|
118
|
+
*
|
119
|
+
* PERMISSION & CONDITIONS
|
120
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
121
|
+
* a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
122
|
+
* redistribute, and sell modified and unmodified copies of the Font
|
123
|
+
* Software, subject to the following conditions:
|
124
|
+
*
|
125
|
+
* 1) Neither the Font Software nor any of its individual components,
|
126
|
+
* in Original or Modified Versions, may be sold by itself.
|
127
|
+
*
|
128
|
+
* 2) Original or Modified Versions of the Font Software may be bundled,
|
129
|
+
* redistributed and/or sold with any software, provided that each copy
|
130
|
+
* contains the above copyright notice and this license. These can be
|
131
|
+
* included either as stand-alone text files, human-readable headers or
|
132
|
+
* in the appropriate machine-readable metadata fields within text or
|
133
|
+
* binary files as long as those fields can be easily viewed by the user.
|
134
|
+
*
|
135
|
+
* 3) No Modified Version of the Font Software may use the Reserved Font
|
136
|
+
* Name(s) unless explicit written permission is granted by the corresponding
|
137
|
+
* Copyright Holder. This restriction only applies to the primary font name as
|
138
|
+
* presented to the users.
|
139
|
+
*
|
140
|
+
* 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
141
|
+
* Software shall not be used to promote, endorse or advertise any
|
142
|
+
* Modified Version, except to acknowledge the contribution(s) of the
|
143
|
+
* Copyright Holder(s) and the Author(s) or with their explicit written
|
144
|
+
* permission.
|
145
|
+
*
|
146
|
+
* 5) The Font Software, modified or unmodified, in part or in whole,
|
147
|
+
* must be distributed entirely under this license, and must not be
|
148
|
+
* distributed under any other license. The requirement for fonts to
|
149
|
+
* remain under this license does not apply to any document created
|
150
|
+
* using the Font Software.
|
151
|
+
*
|
152
|
+
* TERMINATION
|
153
|
+
* This license becomes null and void if any of the above conditions are
|
154
|
+
* not met.
|
155
|
+
*
|
156
|
+
* DISCLAIMER
|
157
|
+
* THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
158
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
159
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
160
|
+
* OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
161
|
+
* COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
162
|
+
* INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
163
|
+
* DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
164
|
+
* FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
165
|
+
* OTHER DEALINGS IN THE FONT SOFTWARE.
|
166
|
+
*/
|
167
|
+
|