bovem 3.0.5 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -3
- data/.rubocop.yml +82 -0
- data/.travis-gemfile +4 -5
- data/.travis.yml +8 -6
- data/CHANGELOG.md +12 -0
- data/Gemfile +9 -8
- data/README.md +1 -1
- data/Rakefile +22 -6
- data/bovem.gemspec +5 -5
- data/doc/Bovem.html +10 -10
- data/doc/Bovem/Application.html +670 -318
- data/doc/Bovem/Command.html +1447 -1125
- data/doc/Bovem/CommandMethods.html +4 -4
- data/doc/Bovem/CommandMethods/Children.html +173 -179
- data/doc/Bovem/CommandMethods/Help.html +9 -9
- data/doc/Bovem/Configuration.html +239 -24
- data/doc/Bovem/Console.html +267 -128
- data/doc/Bovem/ConsoleMethods.html +4 -4
- data/doc/Bovem/ConsoleMethods/Interactions.html +57 -70
- data/doc/Bovem/ConsoleMethods/Interactions/ClassMethods.html +9 -9
- data/doc/Bovem/ConsoleMethods/Logging.html +258 -298
- data/doc/Bovem/ConsoleMethods/Logging/ClassMethods.html +8 -8
- data/doc/Bovem/ConsoleMethods/Output.html +96 -118
- data/doc/Bovem/ConsoleMethods/StyleHandling.html +8 -8
- data/doc/Bovem/ConsoleMethods/StyleHandling/ClassMethods.html +26 -39
- data/doc/Bovem/Errors.html +4 -4
- data/doc/Bovem/Errors/Error.html +4 -4
- data/doc/Bovem/Errors/InvalidConfiguration.html +4 -4
- data/doc/Bovem/Errors/InvalidLogger.html +4 -4
- data/doc/Bovem/I18n.html +175 -0
- data/doc/Bovem/Logger.html +95 -83
- data/doc/Bovem/Option.html +669 -862
- data/doc/Bovem/Parser.html +10 -10
- data/doc/Bovem/ParserMethods.html +4 -4
- data/doc/Bovem/ParserMethods/General.html +4 -4
- data/doc/Bovem/ParserMethods/General/ClassMethods.html +26 -38
- data/doc/Bovem/Shell.html +169 -48
- data/doc/Bovem/ShellMethods.html +4 -4
- data/doc/Bovem/ShellMethods/Directories.html +46 -62
- data/doc/Bovem/ShellMethods/Execute.html +51 -99
- data/doc/Bovem/ShellMethods/General.html +4 -445
- data/doc/Bovem/ShellMethods/Read.html +56 -61
- data/doc/Bovem/ShellMethods/Write.html +22 -242
- data/doc/Bovem/Version.html +6 -6
- data/doc/_index.html +18 -18
- data/doc/class_list.html +6 -2
- data/doc/css/style.css +1 -0
- data/doc/file.README.html +5 -5
- data/doc/file_list.html +5 -1
- data/doc/frames.html +1 -1
- data/doc/index.html +5 -5
- data/doc/js/full_list.js +4 -1
- data/doc/method_list.html +161 -157
- data/doc/top-level-namespace.html +4 -4
- data/lib/bovem.rb +3 -4
- data/lib/bovem/application.rb +47 -39
- data/lib/bovem/command.rb +175 -193
- data/lib/bovem/configuration.rb +28 -29
- data/lib/bovem/console.rb +244 -171
- data/lib/bovem/errors.rb +1 -1
- data/lib/bovem/i18n.rb +18 -0
- data/lib/bovem/logger.rb +26 -26
- data/lib/bovem/option.rb +49 -58
- data/lib/bovem/parser.rb +174 -222
- data/lib/bovem/shell.rb +272 -320
- data/lib/bovem/version.rb +2 -2
- data/locales/en.yml +39 -38
- data/locales/it.yml +39 -38
- data/spec/bovem/application_spec.rb +6 -5
- data/spec/bovem/command_spec.rb +23 -23
- data/spec/bovem/console_spec.rb +101 -102
- data/spec/bovem/i18n_spec.rb +21 -0
- data/spec/bovem/logger_spec.rb +4 -4
- data/spec/bovem/option_spec.rb +43 -43
- data/spec/bovem/parser_spec.rb +13 -13
- data/spec/bovem/shell_spec.rb +106 -115
- data/spec/spec_helper.rb +19 -6
- metadata +14 -13
- data/doc/Bovem/Localizer.html +0 -376
- data/lib/bovem/localizer.rb +0 -27
- data/spec/coverage_helper.rb +0 -20
data/doc/Bovem/Parser.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Bovem::Parser
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!"
|
20
|
+
framesUrl = "../frames.html#!Bovem/Parser.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -243,14 +243,14 @@
|
|
243
243
|
<pre class="lines">
|
244
244
|
|
245
245
|
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
246
|
+
101
|
247
|
+
102
|
248
|
+
103
|
249
|
+
104
|
250
|
+
105</pre>
|
251
251
|
</td>
|
252
252
|
<td>
|
253
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/parser.rb', line
|
253
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/parser.rb', line 101</span>
|
254
254
|
|
255
255
|
<span class='kw'>def</span> <span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='comma'>,</span> <span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
256
256
|
<span class='id identifier rubyid_args'>args</span> <span class='op'>=</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='period'>.</span><span class='id identifier rubyid_dup'>dup</span>
|
@@ -267,9 +267,9 @@
|
|
267
267
|
</div>
|
268
268
|
|
269
269
|
<div id="footer">
|
270
|
-
Generated on
|
270
|
+
Generated on Tue Mar 29 20:43:17 2016 by
|
271
271
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
272
|
-
0.8.7.
|
272
|
+
0.8.7.6 (ruby-2.3.0).
|
273
273
|
</div>
|
274
274
|
|
275
275
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Bovem::ParserMethods
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!"
|
20
|
+
framesUrl = "../frames.html#!Bovem/ParserMethods.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -116,9 +116,9 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Tue Mar 29 20:43:16 2016 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
|
-
0.8.7.
|
121
|
+
0.8.7.6 (ruby-2.3.0).
|
122
122
|
</div>
|
123
123
|
|
124
124
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Bovem::ParserMethods::General
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '../../';
|
20
|
-
framesUrl = "../../frames.html#!"
|
20
|
+
framesUrl = "../../frames.html#!Bovem/ParserMethods/General.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -125,9 +125,9 @@
|
|
125
125
|
</div>
|
126
126
|
|
127
127
|
<div id="footer">
|
128
|
-
Generated on
|
128
|
+
Generated on Tue Mar 29 20:43:16 2016 by
|
129
129
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
130
|
-
0.8.7.
|
130
|
+
0.8.7.6 (ruby-2.3.0).
|
131
131
|
</div>
|
132
132
|
|
133
133
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Bovem::ParserMethods::General::ClassMethods
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '../../../';
|
20
|
-
framesUrl = "../../../frames.html#!"
|
20
|
+
framesUrl = "../../../frames.html#!Bovem/ParserMethods/General/ClassMethods.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -112,7 +112,7 @@
|
|
112
112
|
<li class="public ">
|
113
113
|
<span class="summary_signature">
|
114
114
|
|
115
|
-
<a href="#find_command-instance_method" title="#find_command (instance method)">- (Hash|NilClass) <strong>find_command</strong>(arg, command, args, separator
|
115
|
+
<a href="#find_command-instance_method" title="#find_command (instance method)">- (Hash|NilClass) <strong>find_command</strong>(arg, command, args: {}, separator: ":") </a>
|
116
116
|
|
117
117
|
|
118
118
|
|
@@ -158,7 +158,7 @@
|
|
158
158
|
<li class="public ">
|
159
159
|
<span class="summary_signature">
|
160
160
|
|
161
|
-
<a href="#smart_join-instance_method" title="#smart_join (instance method)">- (String) <strong>smart_join</strong>(array, separator
|
161
|
+
<a href="#smart_join-instance_method" title="#smart_join (instance method)">- (String) <strong>smart_join</strong>(array, separator: ", ", last_separator: " and ", quote: "\"") </a>
|
162
162
|
|
163
163
|
|
164
164
|
|
@@ -190,7 +190,7 @@
|
|
190
190
|
<div class="method_details first">
|
191
191
|
<h3 class="signature first" id="find_command-instance_method">
|
192
192
|
|
193
|
-
- (<tt>Hash|NilClass</tt>) <strong>find_command</strong>(arg, command, args, separator
|
193
|
+
- (<tt>Hash|NilClass</tt>) <strong>find_command</strong>(arg, command, args: {}, separator: ":")
|
194
194
|
|
195
195
|
|
196
196
|
|
@@ -260,8 +260,6 @@
|
|
260
260
|
<span class='type'>(<tt>String</tt>)</span>
|
261
261
|
|
262
262
|
|
263
|
-
<em class="default">(defaults to: <tt>":"</tt>)</em>
|
264
|
-
|
265
263
|
|
266
264
|
—
|
267
265
|
<div class='inline'><p>The separator for joined syntax commands.</p>
|
@@ -306,25 +304,21 @@
|
|
306
304
|
45
|
307
305
|
46
|
308
306
|
47
|
309
|
-
48
|
310
|
-
49
|
311
|
-
50</pre>
|
307
|
+
48</pre>
|
312
308
|
</td>
|
313
309
|
<td>
|
314
310
|
<pre class="code"><span class="info file"># File 'lib/bovem/parser.rb', line 37</span>
|
315
311
|
|
316
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_find_command'>find_command</span><span class='lparen'>(</span><span class='id identifier rubyid_arg'>arg</span><span class='comma'>,</span> <span class='id identifier rubyid_command'>command</span><span class='comma'>,</span> <span class='
|
317
|
-
<span class='kw'>
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
<span class='
|
324
|
-
|
325
|
-
<span class='
|
326
|
-
<span class='kw'>else</span>
|
327
|
-
<span class='kw'>nil</span>
|
312
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_find_command'>find_command</span><span class='lparen'>(</span><span class='id identifier rubyid_arg'>arg</span><span class='comma'>,</span> <span class='id identifier rubyid_command'>command</span><span class='comma'>,</span> <span class='label'>args:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>:</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
313
|
+
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_command'>command</span><span class='period'>.</span><span class='id identifier rubyid_commands'>commands</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span>
|
314
|
+
|
315
|
+
<span class='id identifier rubyid_arg'>arg</span><span class='comma'>,</span> <span class='id identifier rubyid_args'>args</span> <span class='op'>=</span> <span class='id identifier rubyid_adjust_command'>adjust_command</span><span class='lparen'>(</span><span class='id identifier rubyid_arg'>arg</span><span class='comma'>,</span> <span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='id identifier rubyid_separator'>separator</span><span class='rparen'>)</span>
|
316
|
+
|
317
|
+
<span class='id identifier rubyid_matching'>matching</span> <span class='op'>=</span> <span class='id identifier rubyid_match_subcommands'>match_subcommands</span><span class='lparen'>(</span><span class='id identifier rubyid_arg'>arg</span><span class='comma'>,</span> <span class='id identifier rubyid_command'>command</span><span class='rparen'>)</span>
|
318
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_matching'>matching</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>==</span> <span class='int'>1</span> <span class='comment'># Found a command
|
319
|
+
</span> <span class='lbrace'>{</span><span class='label'>name:</span> <span class='id identifier rubyid_matching'>matching</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>args:</span> <span class='id identifier rubyid_args'>args</span><span class='rbrace'>}</span>
|
320
|
+
<span class='kw'>elsif</span> <span class='id identifier rubyid_matching'>matching</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>></span> <span class='int'>1</span> <span class='comment'># Ambiguous match
|
321
|
+
</span> <span class='id identifier rubyid_raise'>raise</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Errors</span><span class='op'>::</span><span class='const'>Error</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='comma'>,</span> <span class='symbol'>:ambiguous_command</span><span class='comma'>,</span> <span class='id identifier rubyid_command'>command</span><span class='period'>.</span><span class='id identifier rubyid_i18n'>i18n</span><span class='period'>.</span><span class='id identifier rubyid_ambigous_command'>ambigous_command</span><span class='lparen'>(</span><span class='id identifier rubyid_arg'>arg</span><span class='comma'>,</span> <span class='id identifier rubyid_format_alternatives'>format_alternatives</span><span class='lparen'>(</span><span class='id identifier rubyid_matching'>matching</span><span class='comma'>,</span> <span class='id identifier rubyid_command'>command</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
328
322
|
<span class='kw'>end</span>
|
329
323
|
<span class='kw'>end</span></pre>
|
330
324
|
</td>
|
@@ -408,12 +402,12 @@
|
|
408
402
|
<pre class="lines">
|
409
403
|
|
410
404
|
|
411
|
-
|
412
|
-
|
413
|
-
|
405
|
+
55
|
406
|
+
56
|
407
|
+
57</pre>
|
414
408
|
</td>
|
415
409
|
<td>
|
416
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/parser.rb', line
|
410
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/parser.rb', line 55</span>
|
417
411
|
|
418
412
|
<span class='kw'>def</span> <span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='comma'>,</span> <span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
419
413
|
<span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Parser</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='comma'>,</span> <span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
@@ -426,7 +420,7 @@
|
|
426
420
|
<div class="method_details ">
|
427
421
|
<h3 class="signature " id="smart_join-instance_method">
|
428
422
|
|
429
|
-
- (<tt>String</tt>) <strong>smart_join</strong>(array, separator
|
423
|
+
- (<tt>String</tt>) <strong>smart_join</strong>(array, separator: ", ", last_separator: " and ", quote: "\"")
|
430
424
|
|
431
425
|
|
432
426
|
|
@@ -466,8 +460,6 @@
|
|
466
460
|
<span class='type'>(<tt>String</tt>)</span>
|
467
461
|
|
468
462
|
|
469
|
-
<em class="default">(defaults to: <tt>", "</tt>)</em>
|
470
|
-
|
471
463
|
|
472
464
|
—
|
473
465
|
<div class='inline'><p>The separator to use for all but last join.</p>
|
@@ -483,8 +475,6 @@
|
|
483
475
|
<span class='type'>(<tt>String</tt>)</span>
|
484
476
|
|
485
477
|
|
486
|
-
<em class="default">(defaults to: <tt>" and "</tt>)</em>
|
487
|
-
|
488
478
|
|
489
479
|
—
|
490
480
|
<div class='inline'><p>The separator to use for the last join.</p>
|
@@ -500,8 +490,6 @@
|
|
500
490
|
<span class='type'>(<tt>String</tt>)</span>
|
501
491
|
|
502
492
|
|
503
|
-
<em class="default">(defaults to: <tt>"\""</tt>)</em>
|
504
|
-
|
505
493
|
|
506
494
|
—
|
507
495
|
<div class='inline'><p>If not nil, elements are quoted with that element.</p>
|
@@ -545,11 +533,11 @@
|
|
545
533
|
<td>
|
546
534
|
<pre class="code"><span class="info file"># File 'lib/bovem/parser.rb', line 23</span>
|
547
535
|
|
548
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='id identifier rubyid_array'>array</span><span class='comma'>,</span> <span class='
|
536
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_smart_join'>smart_join</span><span class='lparen'>(</span><span class='id identifier rubyid_array'>array</span><span class='comma'>,</span> <span class='label'>separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>last_separator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> and </span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>quote:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\"</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
549
537
|
<span class='id identifier rubyid_separator'>separator</span> <span class='op'>=</span> <span class='id identifier rubyid_separator'>separator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span>
|
550
538
|
<span class='id identifier rubyid_last_separator'>last_separator</span> <span class='op'>=</span> <span class='id identifier rubyid_last_separator'>last_separator</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span>
|
551
|
-
<span class='id identifier rubyid_array'>array</span> <span class='op'>=</span> <span class='id identifier rubyid_array'>array</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span> <span class='lbrace'>{</span
|
552
|
-
<span class='id identifier
|
539
|
+
<span class='id identifier rubyid_array'>array</span> <span class='op'>=</span> <span class='id identifier rubyid_array'>array</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_a'>a</span><span class='op'>|</span> <span class='id identifier rubyid_quote'>quote</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_quote'>quote</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_a'>a</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_quote'>quote</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='op'>:</span> <span class='id identifier rubyid_a'>a</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span> <span class='rbrace'>}</span>
|
540
|
+
<span class='id identifier rubyid_perform_smart_join'>perform_smart_join</span><span class='lparen'>(</span><span class='id identifier rubyid_array'>array</span><span class='comma'>,</span> <span class='id identifier rubyid_last_separator'>last_separator</span><span class='comma'>,</span> <span class='id identifier rubyid_separator'>separator</span><span class='rparen'>)</span>
|
553
541
|
<span class='kw'>end</span></pre>
|
554
542
|
</td>
|
555
543
|
</tr>
|
@@ -561,9 +549,9 @@
|
|
561
549
|
</div>
|
562
550
|
|
563
551
|
<div id="footer">
|
564
|
-
Generated on
|
552
|
+
Generated on Tue Mar 29 20:43:16 2016 by
|
565
553
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
566
|
-
0.8.7.
|
554
|
+
0.8.7.6 (ruby-2.3.0).
|
567
555
|
</div>
|
568
556
|
|
569
557
|
</body>
|
data/doc/Bovem/Shell.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Bovem::Shell
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!"
|
20
|
+
framesUrl = "../frames.html#!Bovem/Shell.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -91,7 +91,7 @@
|
|
91
91
|
|
92
92
|
|
93
93
|
<dt class="r2">Includes:</dt>
|
94
|
-
<dd class="r2"><span class='object_link'><a href="ShellMethods/Directories.html" title="Bovem::ShellMethods::Directories (module)">Bovem::ShellMethods::Directories</a></span>, <span class='object_link'><a href="ShellMethods/Execute.html" title="Bovem::ShellMethods::Execute (module)">Bovem::ShellMethods::Execute</a></span>, <span class='object_link'><a href="ShellMethods/General.html" title="Bovem::ShellMethods::General (module)">Bovem::ShellMethods::General</a></span>, <span class='object_link'><a href="ShellMethods/Read.html" title="Bovem::ShellMethods::Read (module)">Bovem::ShellMethods::Read</a></span>, <span class='object_link'><a href="ShellMethods/Write.html" title="Bovem::ShellMethods::Write (module)">Bovem::ShellMethods::Write</a></span
|
94
|
+
<dd class="r2"><span class='object_link'><a href="ShellMethods/Directories.html" title="Bovem::ShellMethods::Directories (module)">Bovem::ShellMethods::Directories</a></span>, <span class='object_link'><a href="ShellMethods/Execute.html" title="Bovem::ShellMethods::Execute (module)">Bovem::ShellMethods::Execute</a></span>, <span class='object_link'><a href="ShellMethods/General.html" title="Bovem::ShellMethods::General (module)">Bovem::ShellMethods::General</a></span>, <span class='object_link'><a href="ShellMethods/Read.html" title="Bovem::ShellMethods::Read (module)">Bovem::ShellMethods::Read</a></span>, <span class='object_link'><a href="ShellMethods/Write.html" title="Bovem::ShellMethods::Write (module)">Bovem::ShellMethods::Write</a></span></dd>
|
95
95
|
|
96
96
|
|
97
97
|
|
@@ -143,6 +143,34 @@
|
|
143
143
|
<span class="summary_desc"><div class='inline'><p>A console instance.</p>
|
144
144
|
</div></span>
|
145
145
|
|
146
|
+
</li>
|
147
|
+
|
148
|
+
|
149
|
+
<li class="public ">
|
150
|
+
<span class="summary_signature">
|
151
|
+
|
152
|
+
<a href="#i18n-instance_method" title="#i18n (instance method)">- (I18n) <strong>i18n</strong> </a>
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
</span>
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
<span class="note title readonly">readonly</span>
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
<span class="summary_desc"><div class='inline'><p>A i18n helper.</p>
|
172
|
+
</div></span>
|
173
|
+
|
146
174
|
</li>
|
147
175
|
|
148
176
|
|
@@ -251,7 +279,7 @@
|
|
251
279
|
|
252
280
|
|
253
281
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="ShellMethods/Write.html" title="Bovem::ShellMethods::Write (module)">Bovem::ShellMethods::Write</a></span></h3>
|
254
|
-
<p class="inherited"><span class='object_link'><a href="ShellMethods/Write.html#copy-instance_method" title="Bovem::ShellMethods::Write#copy (method)">#copy</a></span>, <span class='object_link'><a href="ShellMethods/Write.html#
|
282
|
+
<p class="inherited"><span class='object_link'><a href="ShellMethods/Write.html#copy-instance_method" title="Bovem::ShellMethods::Write#copy (method)">#copy</a></span>, <span class='object_link'><a href="ShellMethods/Write.html#move-instance_method" title="Bovem::ShellMethods::Write#move (method)">#move</a></span></p>
|
255
283
|
|
256
284
|
|
257
285
|
|
@@ -269,12 +297,6 @@
|
|
269
297
|
|
270
298
|
|
271
299
|
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
<h3 class="inherited">Methods included from <span class='object_link'><a href="ShellMethods/General.html" title="Bovem::ShellMethods::General (module)">Bovem::ShellMethods::General</a></span></h3>
|
276
|
-
<p class="inherited"><span class='object_link'><a href="ShellMethods/General.html#handle_failure-instance_method" title="Bovem::ShellMethods::General#handle_failure (method)">#handle_failure</a></span>, <span class='object_link'><a href="ShellMethods/General.html#setup_error_handling-instance_method" title="Bovem::ShellMethods::General#setup_error_handling (method)">#setup_error_handling</a></span>, <span class='object_link'><a href="ShellMethods/General.html#show_general_failure-instance_method" title="Bovem::ShellMethods::General#show_general_failure (method)">#show_general_failure</a></span></p>
|
277
|
-
|
278
300
|
<div id="constructor_details" class="method_details_list">
|
279
301
|
<h2>Constructor Details</h2>
|
280
302
|
|
@@ -303,17 +325,17 @@
|
|
303
325
|
<pre class="lines">
|
304
326
|
|
305
327
|
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
328
|
+
520
|
329
|
+
521
|
330
|
+
522
|
331
|
+
523</pre>
|
310
332
|
</td>
|
311
333
|
<td>
|
312
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/shell.rb', line
|
334
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/shell.rb', line 520</span>
|
313
335
|
|
314
336
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
315
337
|
<span class='ivar'>@console</span> <span class='op'>=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Console</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
|
316
|
-
<span class='
|
338
|
+
<span class='ivar'>@i18n</span> <span class='op'>=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>I18n</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.shell</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Application</span><span class='op'>::</span><span class='const'>LOCALE_ROOT</span><span class='rparen'>)</span>
|
317
339
|
<span class='kw'>end</span></pre>
|
318
340
|
</td>
|
319
341
|
</tr>
|
@@ -369,35 +391,133 @@
|
|
369
391
|
<pre class="lines">
|
370
392
|
|
371
393
|
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
394
|
+
502
|
395
|
+
503
|
396
|
+
504
|
397
|
+
505
|
398
|
+
506
|
399
|
+
507
|
400
|
+
508
|
401
|
+
509
|
402
|
+
510
|
403
|
+
511
|
404
|
+
512
|
405
|
+
513
|
406
|
+
514
|
407
|
+
515
|
408
|
+
516
|
409
|
+
517
|
410
|
+
518
|
411
|
+
519
|
412
|
+
520
|
413
|
+
521
|
414
|
+
522
|
415
|
+
523
|
416
|
+
524</pre>
|
417
|
+
</td>
|
418
|
+
<td>
|
419
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/shell.rb', line 502</span>
|
420
|
+
|
421
|
+
<span class='kw'>class</span> <span class='const'>Shell</span>
|
422
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ShellMethods</span><span class='op'>::</span><span class='const'>General</span>
|
423
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ShellMethods</span><span class='op'>::</span><span class='const'>Read</span>
|
424
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ShellMethods</span><span class='op'>::</span><span class='const'>Write</span>
|
425
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ShellMethods</span><span class='op'>::</span><span class='const'>Execute</span>
|
426
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ShellMethods</span><span class='op'>::</span><span class='const'>Directories</span>
|
427
|
+
|
428
|
+
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:console</span>
|
429
|
+
<span class='id identifier rubyid_attr_reader'>attr_reader</span> <span class='symbol'>:i18n</span>
|
430
|
+
|
431
|
+
<span class='comment'># Returns a unique instance for Shell.
|
432
|
+
</span> <span class='comment'>#
|
433
|
+
</span> <span class='comment'># @return [Shell] A new instance.
|
434
|
+
</span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
|
435
|
+
<span class='ivar'>@instance</span> <span class='op'>||=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Shell</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
436
|
+
<span class='kw'>end</span>
|
437
|
+
|
438
|
+
<span class='comment'># Initializes a new Shell.
|
439
|
+
</span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
440
|
+
<span class='ivar'>@console</span> <span class='op'>=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Console</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
|
441
|
+
<span class='ivar'>@i18n</span> <span class='op'>=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>I18n</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.shell</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Application</span><span class='op'>::</span><span class='const'>LOCALE_ROOT</span><span class='rparen'>)</span>
|
442
|
+
<span class='kw'>end</span>
|
443
|
+
<span class='kw'>end</span></pre>
|
444
|
+
</td>
|
445
|
+
</tr>
|
446
|
+
</table>
|
447
|
+
</div>
|
448
|
+
|
449
|
+
|
450
|
+
<span id=""></span>
|
451
|
+
<div class="method_details ">
|
452
|
+
<h3 class="signature " id="i18n-instance_method">
|
453
|
+
|
454
|
+
- (<tt><span class='object_link'><a href="I18n.html" title="Bovem::I18n (class)">I18n</a></span></tt>) <strong>i18n</strong> <span class="extras">(readonly)</span>
|
455
|
+
|
456
|
+
|
457
|
+
|
458
|
+
|
459
|
+
|
460
|
+
</h3><div class="docstring">
|
461
|
+
<div class="discussion">
|
462
|
+
<p>Returns A i18n helper.</p>
|
463
|
+
|
464
|
+
|
465
|
+
</div>
|
466
|
+
</div>
|
467
|
+
<div class="tags">
|
468
|
+
|
469
|
+
<p class="tag_title">Returns:</p>
|
470
|
+
<ul class="return">
|
471
|
+
|
472
|
+
<li>
|
473
|
+
|
474
|
+
|
475
|
+
<span class='type'>(<tt><span class='object_link'><a href="I18n.html" title="Bovem::I18n (class)">I18n</a></span></tt>)</span>
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
—
|
480
|
+
<div class='inline'><p>A i18n helper.</p>
|
481
|
+
</div>
|
482
|
+
|
483
|
+
</li>
|
484
|
+
|
485
|
+
</ul>
|
486
|
+
|
487
|
+
</div><table class="source_code">
|
488
|
+
<tr>
|
489
|
+
<td>
|
490
|
+
<pre class="lines">
|
491
|
+
|
492
|
+
|
493
|
+
502
|
494
|
+
503
|
495
|
+
504
|
496
|
+
505
|
497
|
+
506
|
498
|
+
507
|
499
|
+
508
|
500
|
+
509
|
501
|
+
510
|
502
|
+
511
|
503
|
+
512
|
504
|
+
513
|
505
|
+
514
|
506
|
+
515
|
507
|
+
516
|
508
|
+
517
|
509
|
+
518
|
510
|
+
519
|
511
|
+
520
|
512
|
+
521
|
513
|
+
522
|
514
|
+
523
|
515
|
+
524</pre>
|
395
516
|
</td>
|
396
517
|
<td>
|
397
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/shell.rb', line
|
518
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/shell.rb', line 502</span>
|
398
519
|
|
399
520
|
<span class='kw'>class</span> <span class='const'>Shell</span>
|
400
|
-
<span class='id identifier rubyid_include'>include</span> <span class='const'>Lazier</span><span class='op'>::</span><span class='const'>I18n</span>
|
401
521
|
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ShellMethods</span><span class='op'>::</span><span class='const'>General</span>
|
402
522
|
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ShellMethods</span><span class='op'>::</span><span class='const'>Read</span>
|
403
523
|
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ShellMethods</span><span class='op'>::</span><span class='const'>Write</span>
|
@@ -405,6 +525,7 @@
|
|
405
525
|
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ShellMethods</span><span class='op'>::</span><span class='const'>Directories</span>
|
406
526
|
|
407
527
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:console</span>
|
528
|
+
<span class='id identifier rubyid_attr_reader'>attr_reader</span> <span class='symbol'>:i18n</span>
|
408
529
|
|
409
530
|
<span class='comment'># Returns a unique instance for Shell.
|
410
531
|
</span> <span class='comment'>#
|
@@ -416,7 +537,7 @@
|
|
416
537
|
<span class='comment'># Initializes a new Shell.
|
417
538
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
418
539
|
<span class='ivar'>@console</span> <span class='op'>=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Console</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
|
419
|
-
<span class='
|
540
|
+
<span class='ivar'>@i18n</span> <span class='op'>=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>I18n</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.shell</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Application</span><span class='op'>::</span><span class='const'>LOCALE_ROOT</span><span class='rparen'>)</span>
|
420
541
|
<span class='kw'>end</span>
|
421
542
|
<span class='kw'>end</span></pre>
|
422
543
|
</td>
|
@@ -473,12 +594,12 @@
|
|
473
594
|
<pre class="lines">
|
474
595
|
|
475
596
|
|
476
|
-
|
477
|
-
|
478
|
-
|
597
|
+
515
|
598
|
+
516
|
599
|
+
517</pre>
|
479
600
|
</td>
|
480
601
|
<td>
|
481
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/shell.rb', line
|
602
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/shell.rb', line 515</span>
|
482
603
|
|
483
604
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
|
484
605
|
<span class='ivar'>@instance</span> <span class='op'>||=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Shell</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
@@ -493,9 +614,9 @@
|
|
493
614
|
</div>
|
494
615
|
|
495
616
|
<div id="footer">
|
496
|
-
Generated on
|
617
|
+
Generated on Tue Mar 29 20:43:17 2016 by
|
497
618
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
498
|
-
0.8.7.
|
619
|
+
0.8.7.6 (ruby-2.3.0).
|
499
620
|
</div>
|
500
621
|
|
501
622
|
</body>
|