bovem 4.0.1 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/.travis-gemfile +1 -1
- data/.travis.yml +1 -4
- data/.yardopts +1 -1
- data/CHANGELOG.md +7 -0
- data/Gemfile +1 -1
- data/LICENSE.md +21 -0
- data/README.md +21 -16
- data/Rakefile +1 -1
- data/bovem.gemspec +1 -1
- data/docs/Bovem.html +184 -0
- data/{doc → docs}/Bovem/Application.html +139 -140
- data/{doc → docs}/Bovem/Command.html +171 -169
- data/{doc → docs}/Bovem/CommandMethods.html +38 -38
- data/{doc → docs}/Bovem/CommandMethods/Children.html +69 -68
- data/{doc → docs}/Bovem/CommandMethods/Help.html +45 -44
- data/{doc → docs}/Bovem/Configuration.html +58 -57
- data/{doc → docs}/Bovem/Console.html +87 -88
- data/{doc → docs}/Bovem/ConsoleMethods.html +38 -38
- data/{doc → docs}/Bovem/ConsoleMethods/Interactions.html +52 -50
- data/{doc → docs}/Bovem/ConsoleMethods/Interactions/ClassMethods.html +41 -41
- data/{doc → docs}/Bovem/ConsoleMethods/Logging.html +81 -81
- data/{doc → docs}/Bovem/ConsoleMethods/Logging/ClassMethods.html +41 -41
- data/{doc → docs}/Bovem/ConsoleMethods/Output.html +59 -58
- data/{doc → docs}/Bovem/ConsoleMethods/StyleHandling.html +52 -50
- data/{doc → docs}/Bovem/ConsoleMethods/StyleHandling/ClassMethods.html +51 -51
- data/{doc → docs}/Bovem/Errors.html +38 -38
- data/{doc → docs}/Bovem/Errors/Error.html +57 -56
- data/{doc → docs}/Bovem/Errors/InvalidConfiguration.html +44 -43
- data/{doc → docs}/Bovem/Errors/InvalidLogger.html +44 -43
- data/{doc → docs}/Bovem/I18n.html +45 -44
- data/{doc → docs}/Bovem/Logger.html +79 -80
- data/{doc → docs}/Bovem/Option.html +138 -137
- data/{doc → docs}/Bovem/Parser.html +52 -50
- data/{doc → docs}/Bovem/ParserMethods.html +38 -38
- data/{doc → docs}/Bovem/ParserMethods/General.html +47 -45
- data/{doc → docs}/Bovem/ParserMethods/General/ClassMethods.html +47 -47
- data/docs/Bovem/Shell.html +625 -0
- data/{doc → docs}/Bovem/ShellMethods.html +38 -38
- data/{doc → docs}/Bovem/ShellMethods/Directories.html +47 -46
- data/{doc → docs}/Bovem/ShellMethods/Execute.html +47 -46
- data/docs/Bovem/ShellMethods/General.html +120 -0
- data/{doc → docs}/Bovem/ShellMethods/Read.html +47 -46
- data/{doc → docs}/Bovem/ShellMethods/Write.html +47 -46
- data/docs/Bovem/Version.html +187 -0
- data/{doc → docs}/_index.html +32 -35
- data/docs/class_list.html +51 -0
- data/{doc → docs}/css/common.css +0 -0
- data/{doc → docs}/css/full_list.css +32 -31
- data/{doc → docs}/css/style.css +244 -91
- data/{doc → docs}/file.README.html +34 -35
- data/docs/file_list.html +56 -0
- data/docs/frames.html +17 -0
- data/{doc → docs}/index.html +34 -35
- data/{doc → docs}/js/app.js +101 -77
- data/docs/js/full_list.js +216 -0
- data/{doc → docs}/js/jquery.js +0 -0
- data/docs/method_list.html +1115 -0
- data/docs/top-level-namespace.html +110 -0
- data/lib/bovem.rb +1 -1
- data/lib/bovem/application.rb +1 -1
- data/lib/bovem/command.rb +1 -1
- data/lib/bovem/configuration.rb +1 -1
- data/lib/bovem/console.rb +1 -1
- data/lib/bovem/errors.rb +1 -1
- data/lib/bovem/i18n.rb +1 -1
- data/lib/bovem/logger.rb +1 -1
- data/lib/bovem/option.rb +1 -1
- data/lib/bovem/parser.rb +1 -1
- data/lib/bovem/shell.rb +1 -1
- data/lib/bovem/version.rb +2 -2
- data/locales/en.yml +1 -1
- data/locales/it.yml +1 -1
- data/spec/bovem/application_spec.rb +1 -1
- data/spec/bovem/command_spec.rb +1 -1
- data/spec/bovem/configuration_spec.rb +1 -1
- data/spec/bovem/console_spec.rb +1 -1
- data/spec/bovem/errors_spec.rb +1 -1
- data/spec/bovem/i18n_spec.rb +1 -1
- data/spec/bovem/logger_spec.rb +1 -1
- data/spec/bovem/option_spec.rb +1 -1
- data/spec/bovem/parser_spec.rb +1 -1
- data/spec/bovem/shell_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +53 -52
- data/doc/Bovem.html +0 -186
- data/doc/Bovem/Shell.html +0 -623
- data/doc/Bovem/ShellMethods/General.html +0 -119
- data/doc/Bovem/Version.html +0 -189
- data/doc/class_list.html +0 -58
- data/doc/file_list.html +0 -60
- data/doc/frames.html +0 -26
- data/doc/js/full_list.js +0 -181
- data/doc/method_list.html +0 -855
- data/doc/top-level-namespace.html +0 -112
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 701c4f57bd99d68bb8885fb4d709b7aac35f5e39
|
4
|
+
data.tar.gz: 2fc4c2429852f99ef5b7320fb45d71cd1c79f105
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6303e0abcde3cb1800a9feacefd89f091bce042b7e0e6274d13db0f0bf7014757158e54b793eac7f411f20f82c14d4ce867bc6c6fac3fe59ce15c8c5bb9f803d
|
7
|
+
data.tar.gz: cf75eff7624eefe3e434b291109cc67def73953232e8af8ccb944b6f69d68354dfc2fb73ce5ebd4b70cbb434777a440182ab6ebee4c1c28ac44e34e2b476172e
|
data/.rubocop.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# This file is part of the bovem gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
|
3
|
-
# Licensed under the MIT license, which can be found at
|
3
|
+
# Licensed under the MIT license, which can be found at https://choosealicense.com/licenses/mit.
|
4
4
|
#
|
5
5
|
|
6
6
|
AllCops:
|
data/.travis-gemfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# This file is part of the bovem gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
|
3
|
-
# Licensed under the MIT license, which can be found at
|
3
|
+
# Licensed under the MIT license, which can be found at https://choosealicense.com/licenses/mit.
|
4
4
|
#
|
5
5
|
|
6
6
|
source "http://rubygems.org"
|
data/.travis.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# This file is part of the bovem gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
|
3
|
-
# Licensed under the MIT license, which can be found at
|
3
|
+
# Licensed under the MIT license, which can be found at https://choosealicense.com/licenses/mit.
|
4
4
|
#
|
5
5
|
|
6
6
|
language: ruby
|
@@ -10,6 +10,3 @@ script: bundle exec rake spec:ci
|
|
10
10
|
gemfile: .travis-gemfile
|
11
11
|
notifications:
|
12
12
|
email: false
|
13
|
-
addons:
|
14
|
-
code_climate:
|
15
|
-
repo_token: 2c73e549b7ef56488177e636e68e9cba8d963669622f5a5d9b885eab043b8a9e
|
data/.yardopts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
-o ./docs -m markdown
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
3
|
# This file is part of the bovem gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
|
4
|
-
# Licensed under the MIT license, which can be found at
|
4
|
+
# Licensed under the MIT license, which can be found at https://choosealicense.com/licenses/mit.
|
5
5
|
#
|
6
6
|
|
7
7
|
source "http://rubygems.org"
|
data/LICENSE.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (C) 2018 and above Shogun <shogun@cowtech.it>
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
# bovem
|
2
2
|
|
3
|
-
[![Gem Version](https://
|
4
|
-
[![Dependency Status](https://
|
5
|
-
[![Build Status](https://
|
6
|
-
[![
|
7
|
-
[![Coverage Status](https://coveralls.io/repos/ShogunPanda/bovem/badge.png)](https://coveralls.io/r/ShogunPanda/bovem)
|
3
|
+
[![Gem Version](https://img.shields.io/gem/v/bovem.svg)](https://rubygems.org/gems/bovem)
|
4
|
+
[![Dependency Status](https://img.shields.io/gemnasium/ShogunPanda/bovem.svg)](https://gemnasium.com/ShogunPanda/bovem)
|
5
|
+
[![Build Status](https://img.shields.io/travis/ShogunPanda/bovem.svg)](http://travis-ci.org/ShogunPanda/bovem)
|
6
|
+
[![Coverage Status](https://img.shields.io/coveralls/github/ShogunPanda/bovem.svg)](https://coveralls.io/github/ShogunPanda/bovem)
|
8
7
|
|
9
|
-
|
8
|
+
## END OF DEVELOPMENT NOTICE
|
9
|
+
|
10
|
+
# This gem has been discontinued.
|
10
11
|
|
11
|
-
|
12
|
+
A command line manager and a collection of utilities for developers.
|
12
13
|
|
13
|
-
|
14
|
+
https://sw.cowtech.it/bovem
|
14
15
|
|
15
16
|
## Description
|
16
17
|
|
@@ -69,6 +70,7 @@ You can use the `--help` switch or the `help command` syntax to navigate through
|
|
69
70
|
After setting up the skeleton, you will just need to write the action bodies and you're done. **Happy coding!**
|
70
71
|
|
71
72
|
### Wrapping up the example
|
73
|
+
|
72
74
|
Here's the help screen of the application above for the global application and for the `manage` command.
|
73
75
|
|
74
76
|
#### General help
|
@@ -109,20 +111,23 @@ $ ./test help manage
|
|
109
111
|
remove - Removes a TODO.
|
110
112
|
```
|
111
113
|
|
112
|
-
|
113
114
|
## Advanced usage
|
114
115
|
|
115
116
|
See documentation for more information.
|
116
117
|
|
118
|
+
## API Documentation
|
119
|
+
|
120
|
+
The API documentation can be found [here](https://sw.cowtech.it/bovem/docs).
|
121
|
+
|
117
122
|
## Contributing to bovem
|
118
123
|
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
124
|
+
- Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
125
|
+
- Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
126
|
+
- Fork the project.
|
127
|
+
- Start a feature/bugfix branch.
|
128
|
+
- Commit and push until you are happy with your contribution.
|
129
|
+
- Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
130
|
+
- Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
126
131
|
|
127
132
|
## Copyright
|
128
133
|
|
data/Rakefile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
3
|
# This file is part of the cowtech-extensions gem. Copyright (C) 2011 and above Shogun <shogun@cowtech.it>.
|
4
|
-
# Licensed under the MIT license, which can be found at
|
4
|
+
# Licensed under the MIT license, which can be found at https://choosealicense.com/licenses/mit.
|
5
5
|
#
|
6
6
|
|
7
7
|
require "bundler/gem_tasks"
|
data/bovem.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#
|
3
3
|
# This file is part of the bovem gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
|
4
|
-
# Licensed under the MIT license, which can be found at
|
4
|
+
# Licensed under the MIT license, which can be found at https://choosealicense.com/licenses/mit.
|
5
5
|
#
|
6
6
|
|
7
7
|
require File.expand_path("../lib/bovem/version", __FILE__)
|
data/docs/Bovem.html
ADDED
@@ -0,0 +1,184 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Module: Bovem
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.7
|
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
|
+
pathId = "Bovem";
|
19
|
+
relpath = '';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="_index.html">Index (B)</a> »
|
40
|
+
|
41
|
+
|
42
|
+
<span class="title">Bovem</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Module: Bovem
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<dl>
|
80
|
+
<dt>Defined in:</dt>
|
81
|
+
<dd>lib/bovem/i18n.rb<span class="defines">,<br />
|
82
|
+
lib/bovem/shell.rb,<br /> lib/bovem/errors.rb,<br /> lib/bovem/logger.rb,<br /> lib/bovem/option.rb,<br /> lib/bovem/parser.rb,<br /> lib/bovem/command.rb,<br /> lib/bovem/console.rb,<br /> lib/bovem/version.rb,<br /> lib/bovem/application.rb,<br /> lib/bovem/configuration.rb</span>
|
83
|
+
</dd>
|
84
|
+
</dl>
|
85
|
+
|
86
|
+
</div>
|
87
|
+
|
88
|
+
<h2>Overview</h2><div class="docstring">
|
89
|
+
<div class="discussion">
|
90
|
+
<p>This file is part of the bovem gem. Copyright (C) 2013 and above Shogun <a href="mailto:shogun@cowtech.it">shogun@cowtech.it</a>.
|
91
|
+
Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.</p>
|
92
|
+
|
93
|
+
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
<div class="tags">
|
97
|
+
|
98
|
+
|
99
|
+
</div><h2>Defined Under Namespace</h2>
|
100
|
+
<p class="children">
|
101
|
+
|
102
|
+
|
103
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Bovem/CommandMethods.html" title="Bovem::CommandMethods (module)">CommandMethods</a></span>, <span class='object_link'><a href="Bovem/ConsoleMethods.html" title="Bovem::ConsoleMethods (module)">ConsoleMethods</a></span>, <span class='object_link'><a href="Bovem/Errors.html" title="Bovem::Errors (module)">Errors</a></span>, <span class='object_link'><a href="Bovem/ParserMethods.html" title="Bovem::ParserMethods (module)">ParserMethods</a></span>, <span class='object_link'><a href="Bovem/ShellMethods.html" title="Bovem::ShellMethods (module)">ShellMethods</a></span>, <span class='object_link'><a href="Bovem/Version.html" title="Bovem::Version (module)">Version</a></span>
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Bovem/Application.html" title="Bovem::Application (class)">Application</a></span>, <span class='object_link'><a href="Bovem/Command.html" title="Bovem::Command (class)">Command</a></span>, <span class='object_link'><a href="Bovem/Configuration.html" title="Bovem::Configuration (class)">Configuration</a></span>, <span class='object_link'><a href="Bovem/Console.html" title="Bovem::Console (class)">Console</a></span>, <span class='object_link'><a href="Bovem/I18n.html" title="Bovem::I18n (class)">I18n</a></span>, <span class='object_link'><a href="Bovem/Logger.html" title="Bovem::Logger (class)">Logger</a></span>, <span class='object_link'><a href="Bovem/Option.html" title="Bovem::Option (class)">Option</a></span>, <span class='object_link'><a href="Bovem/Parser.html" title="Bovem::Parser (class)">Parser</a></span>, <span class='object_link'><a href="Bovem/Shell.html" title="Bovem::Shell (class)">Shell</a></span>
|
108
|
+
|
109
|
+
|
110
|
+
</p>
|
111
|
+
|
112
|
+
<h2>Constant Summary</h2>
|
113
|
+
<dl class="constants">
|
114
|
+
|
115
|
+
<dt id="OPTION_TYPES-constant" class="">OPTION_TYPES =
|
116
|
+
<div class="docstring">
|
117
|
+
<div class="discussion">
|
118
|
+
<p>List of valid option types.</p>
|
119
|
+
|
120
|
+
<p>Values are the default values for that type.</p>
|
121
|
+
|
122
|
+
<p>For any unknown type, the default value is <code>false</code>, it means that any unknown type is managed as a Boolean value with no argument.</p>
|
123
|
+
|
124
|
+
|
125
|
+
</div>
|
126
|
+
</div>
|
127
|
+
<div class="tags">
|
128
|
+
|
129
|
+
|
130
|
+
</div>
|
131
|
+
</dt>
|
132
|
+
<dd><pre class="code"><span class='lbrace'>{</span><span class='const'>String</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='const'>Integer</span> <span class='op'>=></span> <span class='int'>0</span><span class='comma'>,</span> <span class='const'>Fixnum</span> <span class='op'>=></span> <span class='int'>0</span><span class='comma'>,</span> <span class='const'>Bignum</span> <span class='op'>=></span> <span class='int'>0</span><span class='comma'>,</span> <span class='const'>Float</span> <span class='op'>=></span> <span class='float'>0.0</span><span class='comma'>,</span> <span class='const'>Array</span> <span class='op'>=></span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
133
|
+
|
134
|
+
<dt id="TERM_COLORS-constant" class="">TERM_COLORS =
|
135
|
+
<div class="docstring">
|
136
|
+
<div class="discussion">
|
137
|
+
<p>List of valid terminal colors.</p>
|
138
|
+
|
139
|
+
|
140
|
+
</div>
|
141
|
+
</div>
|
142
|
+
<div class="tags">
|
143
|
+
|
144
|
+
|
145
|
+
</div>
|
146
|
+
</dt>
|
147
|
+
<dd><pre class="code"><span class='lbrace'>{</span><span class='label'>black:</span> <span class='int'>0</span><span class='comma'>,</span> <span class='label'>red:</span> <span class='int'>1</span><span class='comma'>,</span> <span class='label'>green:</span> <span class='int'>2</span><span class='comma'>,</span> <span class='label'>yellow:</span> <span class='int'>3</span><span class='comma'>,</span> <span class='label'>blue:</span> <span class='int'>4</span><span class='comma'>,</span> <span class='label'>magenta:</span> <span class='int'>5</span><span class='comma'>,</span> <span class='label'>cyan:</span> <span class='int'>6</span><span class='comma'>,</span> <span class='label'>white:</span> <span class='int'>7</span><span class='comma'>,</span> <span class='label'>default:</span> <span class='int'>9</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
148
|
+
|
149
|
+
<dt id="TERM_EFFECTS-constant" class="">TERM_EFFECTS =
|
150
|
+
<div class="docstring">
|
151
|
+
<div class="discussion">
|
152
|
+
<p>List of valid terminal text effects.</p>
|
153
|
+
|
154
|
+
|
155
|
+
</div>
|
156
|
+
</div>
|
157
|
+
<div class="tags">
|
158
|
+
|
159
|
+
|
160
|
+
</div>
|
161
|
+
</dt>
|
162
|
+
<dd><pre class="code"><span class='lbrace'>{</span><span class='label'>reset:</span> <span class='int'>0</span><span class='comma'>,</span> <span class='label'>bright:</span> <span class='int'>1</span><span class='comma'>,</span> <span class='label'>italic:</span> <span class='int'>3</span><span class='comma'>,</span> <span class='label'>underline:</span> <span class='int'>4</span><span class='comma'>,</span> <span class='label'>blink:</span> <span class='int'>5</span><span class='comma'>,</span> <span class='label'>inverse:</span> <span class='int'>7</span><span class='comma'>,</span> <span class='label'>hide:</span> <span class='int'>8</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
163
|
+
|
164
|
+
</dl>
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
</div>
|
175
|
+
|
176
|
+
<div id="footer">
|
177
|
+
Generated on Thu Jan 12 16:10:58 2017 by
|
178
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
179
|
+
0.9.7 (ruby-2.3.0).
|
180
|
+
</div>
|
181
|
+
|
182
|
+
</div>
|
183
|
+
</body>
|
184
|
+
</html>
|
@@ -1,12 +1,12 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
Class: Bovem::Application
|
8
8
|
|
9
|
-
— Documentation by YARD 0.
|
9
|
+
— Documentation by YARD 0.9.7
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -15,9 +15,8 @@
|
|
15
15
|
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
|
18
|
+
pathId = "Bovem::Application";
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!Bovem/Application.html";
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,51 +27,48 @@
|
|
28
27
|
|
29
28
|
</head>
|
30
29
|
<body>
|
31
|
-
<div
|
32
|
-
<
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
33
38
|
|
34
39
|
<a href="../_index.html">Index (A)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">Application</span>
|
38
43
|
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
44
|
</div>
|
42
45
|
|
43
|
-
|
46
|
+
<div id="search">
|
44
47
|
|
45
48
|
<a class="full_list_link" id="class_list_link"
|
46
49
|
href="../class_list.html">
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../file_list.html">
|
57
|
-
File List
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
58
56
|
</a>
|
59
57
|
|
60
58
|
</div>
|
61
|
-
|
62
|
-
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
63
61
|
|
64
|
-
|
65
|
-
|
66
|
-
<div id="content"><h1>Class: Bovem::Application
|
62
|
+
<div id="content"><h1>Class: Bovem::Application
|
67
63
|
|
68
64
|
|
69
65
|
|
70
66
|
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
67
|
+
<div class="box_info">
|
73
68
|
|
74
|
-
|
75
|
-
<
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
76
72
|
<span class="inheritName"><span class='object_link'><a href="Command.html" title="Bovem::Command (class)">Command</a></span></span>
|
77
73
|
|
78
74
|
<ul class="fullTree">
|
@@ -85,21 +81,25 @@
|
|
85
81
|
</ul>
|
86
82
|
<a href="#" class="inheritanceTree">show all</a>
|
87
83
|
|
88
|
-
|
89
|
-
|
84
|
+
</dd>
|
85
|
+
</dl>
|
90
86
|
|
87
|
+
|
91
88
|
|
92
|
-
|
93
89
|
|
94
|
-
|
95
90
|
|
96
91
|
|
97
92
|
|
98
|
-
|
99
|
-
<dd class="r2 last">lib/bovem/application.rb</dd>
|
93
|
+
|
100
94
|
|
101
|
-
|
102
|
-
|
95
|
+
|
96
|
+
|
97
|
+
<dl>
|
98
|
+
<dt>Defined in:</dt>
|
99
|
+
<dd>lib/bovem/application.rb</dd>
|
100
|
+
</dl>
|
101
|
+
|
102
|
+
</div>
|
103
103
|
|
104
104
|
<h2>Overview</h2><div class="docstring">
|
105
105
|
<div class="discussion">
|
@@ -115,11 +115,10 @@
|
|
115
115
|
|
116
116
|
</div>
|
117
117
|
<h2>Constant Summary</h2>
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
<
|
122
|
-
<div class="docstring">
|
118
|
+
<dl class="constants">
|
119
|
+
|
120
|
+
<dt id="LOCALE_ROOT-constant" class="">LOCALE_ROOT =
|
121
|
+
<div class="docstring">
|
123
122
|
<div class="discussion">
|
124
123
|
<p>The location of the locales translation files.</p>
|
125
124
|
|
@@ -130,22 +129,21 @@
|
|
130
129
|
|
131
130
|
|
132
131
|
</div>
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
132
|
+
</dt>
|
133
|
+
<dd><pre class="code"><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/../../locales/</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
134
|
+
|
135
|
+
</dl>
|
138
136
|
|
139
137
|
|
140
138
|
|
141
139
|
|
142
|
-
<h2>Instance Attribute Summary <small
|
140
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
143
141
|
<ul class="summary">
|
144
142
|
|
145
143
|
<li class="public ">
|
146
144
|
<span class="summary_signature">
|
147
145
|
|
148
|
-
<a href="#console-instance_method" title="#console (instance method)"
|
146
|
+
<a href="#console-instance_method" title="#console (instance method)">#<strong>console</strong> ⇒ Bovem::Console </a>
|
149
147
|
|
150
148
|
|
151
149
|
|
@@ -171,7 +169,7 @@
|
|
171
169
|
<li class="public ">
|
172
170
|
<span class="summary_signature">
|
173
171
|
|
174
|
-
<a href="#output_commands-instance_method" title="#output_commands (instance method)"
|
172
|
+
<a href="#output_commands-instance_method" title="#output_commands (instance method)">#<strong>output_commands</strong> ⇒ Boolean </a>
|
175
173
|
|
176
174
|
|
177
175
|
|
@@ -197,7 +195,7 @@
|
|
197
195
|
<li class="public ">
|
198
196
|
<span class="summary_signature">
|
199
197
|
|
200
|
-
<a href="#shell-instance_method" title="#shell (instance method)"
|
198
|
+
<a href="#shell-instance_method" title="#shell (instance method)">#<strong>shell</strong> ⇒ Bovem::Shell </a>
|
201
199
|
|
202
200
|
|
203
201
|
|
@@ -223,7 +221,7 @@
|
|
223
221
|
<li class="public ">
|
224
222
|
<span class="summary_signature">
|
225
223
|
|
226
|
-
<a href="#show_commands-instance_method" title="#show_commands (instance method)"
|
224
|
+
<a href="#show_commands-instance_method" title="#show_commands (instance method)">#<strong>show_commands</strong> ⇒ Boolean </a>
|
227
225
|
|
228
226
|
|
229
227
|
|
@@ -249,7 +247,7 @@
|
|
249
247
|
<li class="public ">
|
250
248
|
<span class="summary_signature">
|
251
249
|
|
252
|
-
<a href="#skip_commands-instance_method" title="#skip_commands (instance method)"
|
250
|
+
<a href="#skip_commands-instance_method" title="#skip_commands (instance method)">#<strong>skip_commands</strong> ⇒ Boolean </a>
|
253
251
|
|
254
252
|
|
255
253
|
|
@@ -275,7 +273,7 @@
|
|
275
273
|
<li class="public ">
|
276
274
|
<span class="summary_signature">
|
277
275
|
|
278
|
-
<a href="#version-instance_method" title="#version (instance method)"
|
276
|
+
<a href="#version-instance_method" title="#version (instance method)">#<strong>version</strong>(value = nil) ⇒ String|nil </a>
|
279
277
|
|
280
278
|
|
281
279
|
|
@@ -316,7 +314,7 @@
|
|
316
314
|
|
317
315
|
<h2>
|
318
316
|
Class Method Summary
|
319
|
-
<small
|
317
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
320
318
|
</h2>
|
321
319
|
|
322
320
|
<ul class="summary">
|
@@ -324,7 +322,7 @@
|
|
324
322
|
<li class="public ">
|
325
323
|
<span class="summary_signature">
|
326
324
|
|
327
|
-
<a href="#create-class_method" title="create (class method)"
|
325
|
+
<a href="#create-class_method" title="create (class method)">.<strong>create</strong>(options = {}, &block) ⇒ Application </a>
|
328
326
|
|
329
327
|
|
330
328
|
|
@@ -347,7 +345,7 @@
|
|
347
345
|
<li class="public ">
|
348
346
|
<span class="summary_signature">
|
349
347
|
|
350
|
-
<a href="#create_application-class_method" title="create_application (class method)"
|
348
|
+
<a href="#create_application-class_method" title="create_application (class method)">.<strong>create_application</strong>(run, args, options, &block) ⇒ Application </a>
|
351
349
|
|
352
350
|
|
353
351
|
|
@@ -370,7 +368,7 @@
|
|
370
368
|
<li class="public ">
|
371
369
|
<span class="summary_signature">
|
372
370
|
|
373
|
-
<a href="#setup_application_option-class_method" title="setup_application_option (class method)"
|
371
|
+
<a href="#setup_application_option-class_method" title="setup_application_option (class method)">.<strong>setup_application_option</strong>(options) ⇒ Array </a>
|
374
372
|
|
375
373
|
|
376
374
|
|
@@ -394,7 +392,7 @@
|
|
394
392
|
|
395
393
|
<h2>
|
396
394
|
Instance Method Summary
|
397
|
-
<small
|
395
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
398
396
|
</h2>
|
399
397
|
|
400
398
|
<ul class="summary">
|
@@ -402,7 +400,7 @@
|
|
402
400
|
<li class="public ">
|
403
401
|
<span class="summary_signature">
|
404
402
|
|
405
|
-
<a href="#command_help-instance_method" title="#command_help (instance method)"
|
403
|
+
<a href="#command_help-instance_method" title="#command_help (instance method)">#<strong>command_help</strong>(command) ⇒ Object </a>
|
406
404
|
|
407
405
|
|
408
406
|
|
@@ -425,7 +423,7 @@
|
|
425
423
|
<li class="public ">
|
426
424
|
<span class="summary_signature">
|
427
425
|
|
428
|
-
<a href="#executable_name-instance_method" title="#executable_name (instance method)"
|
426
|
+
<a href="#executable_name-instance_method" title="#executable_name (instance method)">#<strong>executable_name</strong> ⇒ String </a>
|
429
427
|
|
430
428
|
|
431
429
|
|
@@ -448,7 +446,7 @@
|
|
448
446
|
<li class="public ">
|
449
447
|
<span class="summary_signature">
|
450
448
|
|
451
|
-
<a href="#execute-instance_method" title="#execute (instance method)"
|
449
|
+
<a href="#execute-instance_method" title="#execute (instance method)">#<strong>execute</strong>(args = nil) ⇒ Object </a>
|
452
450
|
|
453
451
|
|
454
452
|
|
@@ -471,7 +469,7 @@
|
|
471
469
|
<li class="public ">
|
472
470
|
<span class="summary_signature">
|
473
471
|
|
474
|
-
<a href="#help_option-instance_method" title="#help_option (instance method)"
|
472
|
+
<a href="#help_option-instance_method" title="#help_option (instance method)">#<strong>help_option</strong> ⇒ Object </a>
|
475
473
|
|
476
474
|
|
477
475
|
|
@@ -494,7 +492,7 @@
|
|
494
492
|
<li class="public ">
|
495
493
|
<span class="summary_signature">
|
496
494
|
|
497
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)"
|
495
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(options = {}, &block) ⇒ Application </a>
|
498
496
|
|
499
497
|
|
500
498
|
|
@@ -519,7 +517,7 @@
|
|
519
517
|
<li class="public ">
|
520
518
|
<span class="summary_signature">
|
521
519
|
|
522
|
-
<a href="#run-instance_method" title="#run (instance method)"
|
520
|
+
<a href="#run-instance_method" title="#run (instance method)">#<strong>run</strong>(command, message = nil, show_exit = true, fatal = true) ⇒ Hash </a>
|
523
521
|
|
524
522
|
|
525
523
|
|
@@ -581,7 +579,7 @@
|
|
581
579
|
<div class="method_details first">
|
582
580
|
<h3 class="signature first" id="initialize-instance_method">
|
583
581
|
|
584
|
-
|
582
|
+
#<strong>initialize</strong>(options = {}, &block) ⇒ <tt><span class='object_link'><a href="" title="Bovem::Application (class)">Application</a></span></tt>
|
585
583
|
|
586
584
|
|
587
585
|
|
@@ -642,7 +640,7 @@
|
|
642
640
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
643
641
|
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
644
642
|
|
645
|
-
<span class='ivar'>@shell</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_instance'>instance</span>
|
643
|
+
<span class='ivar'>@shell</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Shell.html" title="Bovem::Shell (class)">Shell</a></span></span><span class='period'>.</span><span class='id identifier rubyid_instance'><span class='object_link'><a href="Shell.html#instance-class_method" title="Bovem::Shell.instance (method)">instance</a></span></span>
|
646
644
|
<span class='ivar'>@console</span> <span class='op'>=</span> <span class='ivar'>@shell</span><span class='period'>.</span><span class='id identifier rubyid_console'>console</span>
|
647
645
|
<span class='ivar'>@skip_commands</span> <span class='op'>=</span> <span class='kw'>false</span>
|
648
646
|
<span class='ivar'>@show_commands</span> <span class='op'>=</span> <span class='kw'>false</span>
|
@@ -665,7 +663,7 @@
|
|
665
663
|
<div class="method_details first">
|
666
664
|
<h3 class="signature first" id="console-instance_method">
|
667
665
|
|
668
|
-
|
666
|
+
#<strong>console</strong> ⇒ <tt><span class='object_link'><a href="Console.html" title="Bovem::Console (class)">Bovem::Console</a></span></tt>
|
669
667
|
|
670
668
|
|
671
669
|
|
@@ -850,7 +848,7 @@
|
|
850
848
|
<td>
|
851
849
|
<pre class="code"><span class="info file"># File 'lib/bovem/application.rb', line 24</span>
|
852
850
|
|
853
|
-
<span class='kw'>class</span> <span class='const'>Application</span> <span class='op'><</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Command</span>
|
851
|
+
<span class='kw'>class</span> <span class='const'><span class='object_link'><a href="" title="Bovem::Application (class)">Application</a></span></span> <span class='op'><</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Command.html" title="Bovem::Command (class)">Command</a></span></span>
|
854
852
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:version</span>
|
855
853
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:shell</span>
|
856
854
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:console</span>
|
@@ -859,7 +857,7 @@
|
|
859
857
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:output_commands</span>
|
860
858
|
|
861
859
|
<span class='comment'># The location of the locales translation files.
|
862
|
-
</span> <span class='const'>LOCALE_ROOT</span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/../../locales/</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span>
|
860
|
+
</span> <span class='const'><span class='object_link'><a href="#LOCALE_ROOT-constant" title="Bovem::Application::LOCALE_ROOT (constant)">LOCALE_ROOT</a></span></span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/../../locales/</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span>
|
863
861
|
|
864
862
|
<span class='comment'># Initializes a new Bovem application.
|
865
863
|
</span> <span class='comment'>#
|
@@ -871,9 +869,9 @@
|
|
871
869
|
</span> <span class='comment'># @return [Application] The created application.
|
872
870
|
</span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
873
871
|
<span class='kw'>unless</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
874
|
-
<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>
|
875
|
-
<span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Application</span><span class='comma'>,</span> <span class='symbol'>:missing_block</span><span class='comma'>,</span>
|
876
|
-
<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='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'>LOCALE_ROOT</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_missing_app_block'>missing_app_block</span>
|
872
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors.html" title="Bovem::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors/Error.html" title="Bovem::Errors::Error (class)">Error</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Errors/Error.html#initialize-instance_method" title="Bovem::Errors::Error#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
873
|
+
<span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="Bovem::Application (class)">Application</a></span></span><span class='comma'>,</span> <span class='symbol'>:missing_block</span><span class='comma'>,</span>
|
874
|
+
<span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="I18n.html" title="Bovem::I18n (class)">I18n</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'><span class='object_link'><a href="#LOCALE_ROOT-constant" title="Bovem::Application::LOCALE_ROOT (constant)">LOCALE_ROOT</a></span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_missing_app_block'>missing_app_block</span>
|
877
875
|
<span class='rparen'>)</span>
|
878
876
|
<span class='kw'>end</span>
|
879
877
|
|
@@ -893,7 +891,7 @@
|
|
893
891
|
</span> <span class='comment'># @return [Array] If to run the application, the arguments and the specified options.
|
894
892
|
</span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setup_application_option'>setup_application_option</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
895
893
|
<span class='id identifier rubyid_base_options'>base_options</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
896
|
-
<span class='label'>name:</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='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'>LOCALE_ROOT</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_default_application_name'>default_application_name</span><span class='comma'>,</span>
|
894
|
+
<span class='label'>name:</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="I18n.html" title="Bovem::I18n (class)">I18n</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'><span class='object_link'><a href="#LOCALE_ROOT-constant" title="Bovem::Application::LOCALE_ROOT (constant)">LOCALE_ROOT</a></span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_default_application_name'>default_application_name</span><span class='comma'>,</span>
|
897
895
|
<span class='label'>parent:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>application:</span> <span class='kw'>nil</span>
|
898
896
|
<span class='rbrace'>}</span>
|
899
897
|
<span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='id identifier rubyid_base_options'>base_options</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_ensure_hash'>ensure_hash</span><span class='rparen'>)</span>
|
@@ -919,7 +917,7 @@
|
|
919
917
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
920
918
|
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
921
919
|
|
922
|
-
<span class='ivar'>@shell</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_instance'>instance</span>
|
920
|
+
<span class='ivar'>@shell</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Shell.html" title="Bovem::Shell (class)">Shell</a></span></span><span class='period'>.</span><span class='id identifier rubyid_instance'><span class='object_link'><a href="Shell.html#instance-class_method" title="Bovem::Shell.instance (method)">instance</a></span></span>
|
923
921
|
<span class='ivar'>@console</span> <span class='op'>=</span> <span class='ivar'>@shell</span><span class='period'>.</span><span class='id identifier rubyid_console'>console</span>
|
924
922
|
<span class='ivar'>@skip_commands</span> <span class='op'>=</span> <span class='kw'>false</span>
|
925
923
|
<span class='ivar'>@show_commands</span> <span class='op'>=</span> <span class='kw'>false</span>
|
@@ -966,7 +964,7 @@
|
|
966
964
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_command_help'>command_help</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</span>
|
967
965
|
<span class='id identifier rubyid_fetch_commands_for_help'>fetch_commands_for_help</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</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_arg'>arg</span><span class='op'>|</span>
|
968
966
|
<span class='comment'># Find the command across
|
969
|
-
</span> <span class='id identifier rubyid_next_command'>next_command</span> <span class='op'>=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Parser</span><span class='period'>.</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='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
967
|
+
</span> <span class='id identifier rubyid_next_command'>next_command</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Parser.html" title="Bovem::Parser (class)">Parser</a></span></span><span class='period'>.</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='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
970
968
|
<span class='kw'>break</span> <span class='kw'>unless</span> <span class='id identifier rubyid_next_command'>next_command</span>
|
971
969
|
<span class='id identifier rubyid_command'>command</span> <span class='op'>=</span> <span class='id identifier rubyid_command'>command</span><span class='period'>.</span><span class='id identifier rubyid_commands'>commands</span><span class='lbracket'>[</span><span class='id identifier rubyid_next_command'>next_command</span><span class='lbracket'>[</span><span class='symbol'>:name</span><span class='rbracket'>]</span><span class='rbracket'>]</span>
|
972
970
|
<span class='kw'>end</span>
|
@@ -1002,7 +1000,7 @@
|
|
1002
1000
|
<div class="method_details ">
|
1003
1001
|
<h3 class="signature " id="output_commands-instance_method">
|
1004
1002
|
|
1005
|
-
|
1003
|
+
#<strong>output_commands</strong> ⇒ <tt>Boolean</tt>
|
1006
1004
|
|
1007
1005
|
|
1008
1006
|
|
@@ -1187,7 +1185,7 @@
|
|
1187
1185
|
<td>
|
1188
1186
|
<pre class="code"><span class="info file"># File 'lib/bovem/application.rb', line 24</span>
|
1189
1187
|
|
1190
|
-
<span class='kw'>class</span> <span class='const'>Application</span> <span class='op'><</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Command</span>
|
1188
|
+
<span class='kw'>class</span> <span class='const'><span class='object_link'><a href="" title="Bovem::Application (class)">Application</a></span></span> <span class='op'><</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Command.html" title="Bovem::Command (class)">Command</a></span></span>
|
1191
1189
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:version</span>
|
1192
1190
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:shell</span>
|
1193
1191
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:console</span>
|
@@ -1196,7 +1194,7 @@
|
|
1196
1194
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:output_commands</span>
|
1197
1195
|
|
1198
1196
|
<span class='comment'># The location of the locales translation files.
|
1199
|
-
</span> <span class='const'>LOCALE_ROOT</span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/../../locales/</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span>
|
1197
|
+
</span> <span class='const'><span class='object_link'><a href="#LOCALE_ROOT-constant" title="Bovem::Application::LOCALE_ROOT (constant)">LOCALE_ROOT</a></span></span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/../../locales/</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span>
|
1200
1198
|
|
1201
1199
|
<span class='comment'># Initializes a new Bovem application.
|
1202
1200
|
</span> <span class='comment'>#
|
@@ -1208,9 +1206,9 @@
|
|
1208
1206
|
</span> <span class='comment'># @return [Application] The created application.
|
1209
1207
|
</span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
1210
1208
|
<span class='kw'>unless</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
1211
|
-
<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>
|
1212
|
-
<span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Application</span><span class='comma'>,</span> <span class='symbol'>:missing_block</span><span class='comma'>,</span>
|
1213
|
-
<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='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'>LOCALE_ROOT</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_missing_app_block'>missing_app_block</span>
|
1209
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors.html" title="Bovem::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors/Error.html" title="Bovem::Errors::Error (class)">Error</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Errors/Error.html#initialize-instance_method" title="Bovem::Errors::Error#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
1210
|
+
<span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="Bovem::Application (class)">Application</a></span></span><span class='comma'>,</span> <span class='symbol'>:missing_block</span><span class='comma'>,</span>
|
1211
|
+
<span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="I18n.html" title="Bovem::I18n (class)">I18n</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'><span class='object_link'><a href="#LOCALE_ROOT-constant" title="Bovem::Application::LOCALE_ROOT (constant)">LOCALE_ROOT</a></span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_missing_app_block'>missing_app_block</span>
|
1214
1212
|
<span class='rparen'>)</span>
|
1215
1213
|
<span class='kw'>end</span>
|
1216
1214
|
|
@@ -1230,7 +1228,7 @@
|
|
1230
1228
|
</span> <span class='comment'># @return [Array] If to run the application, the arguments and the specified options.
|
1231
1229
|
</span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setup_application_option'>setup_application_option</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
1232
1230
|
<span class='id identifier rubyid_base_options'>base_options</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
1233
|
-
<span class='label'>name:</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='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'>LOCALE_ROOT</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_default_application_name'>default_application_name</span><span class='comma'>,</span>
|
1231
|
+
<span class='label'>name:</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="I18n.html" title="Bovem::I18n (class)">I18n</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'><span class='object_link'><a href="#LOCALE_ROOT-constant" title="Bovem::Application::LOCALE_ROOT (constant)">LOCALE_ROOT</a></span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_default_application_name'>default_application_name</span><span class='comma'>,</span>
|
1234
1232
|
<span class='label'>parent:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>application:</span> <span class='kw'>nil</span>
|
1235
1233
|
<span class='rbrace'>}</span>
|
1236
1234
|
<span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='id identifier rubyid_base_options'>base_options</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_ensure_hash'>ensure_hash</span><span class='rparen'>)</span>
|
@@ -1256,7 +1254,7 @@
|
|
1256
1254
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
1257
1255
|
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
1258
1256
|
|
1259
|
-
<span class='ivar'>@shell</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_instance'>instance</span>
|
1257
|
+
<span class='ivar'>@shell</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Shell.html" title="Bovem::Shell (class)">Shell</a></span></span><span class='period'>.</span><span class='id identifier rubyid_instance'><span class='object_link'><a href="Shell.html#instance-class_method" title="Bovem::Shell.instance (method)">instance</a></span></span>
|
1260
1258
|
<span class='ivar'>@console</span> <span class='op'>=</span> <span class='ivar'>@shell</span><span class='period'>.</span><span class='id identifier rubyid_console'>console</span>
|
1261
1259
|
<span class='ivar'>@skip_commands</span> <span class='op'>=</span> <span class='kw'>false</span>
|
1262
1260
|
<span class='ivar'>@show_commands</span> <span class='op'>=</span> <span class='kw'>false</span>
|
@@ -1303,7 +1301,7 @@
|
|
1303
1301
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_command_help'>command_help</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</span>
|
1304
1302
|
<span class='id identifier rubyid_fetch_commands_for_help'>fetch_commands_for_help</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</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_arg'>arg</span><span class='op'>|</span>
|
1305
1303
|
<span class='comment'># Find the command across
|
1306
|
-
</span> <span class='id identifier rubyid_next_command'>next_command</span> <span class='op'>=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Parser</span><span class='period'>.</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='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1304
|
+
</span> <span class='id identifier rubyid_next_command'>next_command</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Parser.html" title="Bovem::Parser (class)">Parser</a></span></span><span class='period'>.</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='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1307
1305
|
<span class='kw'>break</span> <span class='kw'>unless</span> <span class='id identifier rubyid_next_command'>next_command</span>
|
1308
1306
|
<span class='id identifier rubyid_command'>command</span> <span class='op'>=</span> <span class='id identifier rubyid_command'>command</span><span class='period'>.</span><span class='id identifier rubyid_commands'>commands</span><span class='lbracket'>[</span><span class='id identifier rubyid_next_command'>next_command</span><span class='lbracket'>[</span><span class='symbol'>:name</span><span class='rbracket'>]</span><span class='rbracket'>]</span>
|
1309
1307
|
<span class='kw'>end</span>
|
@@ -1339,7 +1337,7 @@
|
|
1339
1337
|
<div class="method_details ">
|
1340
1338
|
<h3 class="signature " id="shell-instance_method">
|
1341
1339
|
|
1342
|
-
|
1340
|
+
#<strong>shell</strong> ⇒ <tt><span class='object_link'><a href="Shell.html" title="Bovem::Shell (class)">Bovem::Shell</a></span></tt>
|
1343
1341
|
|
1344
1342
|
|
1345
1343
|
|
@@ -1524,7 +1522,7 @@
|
|
1524
1522
|
<td>
|
1525
1523
|
<pre class="code"><span class="info file"># File 'lib/bovem/application.rb', line 24</span>
|
1526
1524
|
|
1527
|
-
<span class='kw'>class</span> <span class='const'>Application</span> <span class='op'><</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Command</span>
|
1525
|
+
<span class='kw'>class</span> <span class='const'><span class='object_link'><a href="" title="Bovem::Application (class)">Application</a></span></span> <span class='op'><</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Command.html" title="Bovem::Command (class)">Command</a></span></span>
|
1528
1526
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:version</span>
|
1529
1527
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:shell</span>
|
1530
1528
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:console</span>
|
@@ -1533,7 +1531,7 @@
|
|
1533
1531
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:output_commands</span>
|
1534
1532
|
|
1535
1533
|
<span class='comment'># The location of the locales translation files.
|
1536
|
-
</span> <span class='const'>LOCALE_ROOT</span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/../../locales/</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span>
|
1534
|
+
</span> <span class='const'><span class='object_link'><a href="#LOCALE_ROOT-constant" title="Bovem::Application::LOCALE_ROOT (constant)">LOCALE_ROOT</a></span></span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/../../locales/</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span>
|
1537
1535
|
|
1538
1536
|
<span class='comment'># Initializes a new Bovem application.
|
1539
1537
|
</span> <span class='comment'>#
|
@@ -1545,9 +1543,9 @@
|
|
1545
1543
|
</span> <span class='comment'># @return [Application] The created application.
|
1546
1544
|
</span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
1547
1545
|
<span class='kw'>unless</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
1548
|
-
<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>
|
1549
|
-
<span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Application</span><span class='comma'>,</span> <span class='symbol'>:missing_block</span><span class='comma'>,</span>
|
1550
|
-
<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='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'>LOCALE_ROOT</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_missing_app_block'>missing_app_block</span>
|
1546
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors.html" title="Bovem::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors/Error.html" title="Bovem::Errors::Error (class)">Error</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Errors/Error.html#initialize-instance_method" title="Bovem::Errors::Error#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
1547
|
+
<span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="Bovem::Application (class)">Application</a></span></span><span class='comma'>,</span> <span class='symbol'>:missing_block</span><span class='comma'>,</span>
|
1548
|
+
<span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="I18n.html" title="Bovem::I18n (class)">I18n</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'><span class='object_link'><a href="#LOCALE_ROOT-constant" title="Bovem::Application::LOCALE_ROOT (constant)">LOCALE_ROOT</a></span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_missing_app_block'>missing_app_block</span>
|
1551
1549
|
<span class='rparen'>)</span>
|
1552
1550
|
<span class='kw'>end</span>
|
1553
1551
|
|
@@ -1567,7 +1565,7 @@
|
|
1567
1565
|
</span> <span class='comment'># @return [Array] If to run the application, the arguments and the specified options.
|
1568
1566
|
</span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setup_application_option'>setup_application_option</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
1569
1567
|
<span class='id identifier rubyid_base_options'>base_options</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
1570
|
-
<span class='label'>name:</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='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'>LOCALE_ROOT</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_default_application_name'>default_application_name</span><span class='comma'>,</span>
|
1568
|
+
<span class='label'>name:</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="I18n.html" title="Bovem::I18n (class)">I18n</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'><span class='object_link'><a href="#LOCALE_ROOT-constant" title="Bovem::Application::LOCALE_ROOT (constant)">LOCALE_ROOT</a></span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_default_application_name'>default_application_name</span><span class='comma'>,</span>
|
1571
1569
|
<span class='label'>parent:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>application:</span> <span class='kw'>nil</span>
|
1572
1570
|
<span class='rbrace'>}</span>
|
1573
1571
|
<span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='id identifier rubyid_base_options'>base_options</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_ensure_hash'>ensure_hash</span><span class='rparen'>)</span>
|
@@ -1593,7 +1591,7 @@
|
|
1593
1591
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
1594
1592
|
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
1595
1593
|
|
1596
|
-
<span class='ivar'>@shell</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_instance'>instance</span>
|
1594
|
+
<span class='ivar'>@shell</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Shell.html" title="Bovem::Shell (class)">Shell</a></span></span><span class='period'>.</span><span class='id identifier rubyid_instance'><span class='object_link'><a href="Shell.html#instance-class_method" title="Bovem::Shell.instance (method)">instance</a></span></span>
|
1597
1595
|
<span class='ivar'>@console</span> <span class='op'>=</span> <span class='ivar'>@shell</span><span class='period'>.</span><span class='id identifier rubyid_console'>console</span>
|
1598
1596
|
<span class='ivar'>@skip_commands</span> <span class='op'>=</span> <span class='kw'>false</span>
|
1599
1597
|
<span class='ivar'>@show_commands</span> <span class='op'>=</span> <span class='kw'>false</span>
|
@@ -1640,7 +1638,7 @@
|
|
1640
1638
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_command_help'>command_help</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</span>
|
1641
1639
|
<span class='id identifier rubyid_fetch_commands_for_help'>fetch_commands_for_help</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</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_arg'>arg</span><span class='op'>|</span>
|
1642
1640
|
<span class='comment'># Find the command across
|
1643
|
-
</span> <span class='id identifier rubyid_next_command'>next_command</span> <span class='op'>=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Parser</span><span class='period'>.</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='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1641
|
+
</span> <span class='id identifier rubyid_next_command'>next_command</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Parser.html" title="Bovem::Parser (class)">Parser</a></span></span><span class='period'>.</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='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1644
1642
|
<span class='kw'>break</span> <span class='kw'>unless</span> <span class='id identifier rubyid_next_command'>next_command</span>
|
1645
1643
|
<span class='id identifier rubyid_command'>command</span> <span class='op'>=</span> <span class='id identifier rubyid_command'>command</span><span class='period'>.</span><span class='id identifier rubyid_commands'>commands</span><span class='lbracket'>[</span><span class='id identifier rubyid_next_command'>next_command</span><span class='lbracket'>[</span><span class='symbol'>:name</span><span class='rbracket'>]</span><span class='rbracket'>]</span>
|
1646
1644
|
<span class='kw'>end</span>
|
@@ -1676,7 +1674,7 @@
|
|
1676
1674
|
<div class="method_details ">
|
1677
1675
|
<h3 class="signature " id="show_commands-instance_method">
|
1678
1676
|
|
1679
|
-
|
1677
|
+
#<strong>show_commands</strong> ⇒ <tt>Boolean</tt>
|
1680
1678
|
|
1681
1679
|
|
1682
1680
|
|
@@ -1861,7 +1859,7 @@
|
|
1861
1859
|
<td>
|
1862
1860
|
<pre class="code"><span class="info file"># File 'lib/bovem/application.rb', line 24</span>
|
1863
1861
|
|
1864
|
-
<span class='kw'>class</span> <span class='const'>Application</span> <span class='op'><</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Command</span>
|
1862
|
+
<span class='kw'>class</span> <span class='const'><span class='object_link'><a href="" title="Bovem::Application (class)">Application</a></span></span> <span class='op'><</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Command.html" title="Bovem::Command (class)">Command</a></span></span>
|
1865
1863
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:version</span>
|
1866
1864
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:shell</span>
|
1867
1865
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:console</span>
|
@@ -1870,7 +1868,7 @@
|
|
1870
1868
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:output_commands</span>
|
1871
1869
|
|
1872
1870
|
<span class='comment'># The location of the locales translation files.
|
1873
|
-
</span> <span class='const'>LOCALE_ROOT</span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/../../locales/</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span>
|
1871
|
+
</span> <span class='const'><span class='object_link'><a href="#LOCALE_ROOT-constant" title="Bovem::Application::LOCALE_ROOT (constant)">LOCALE_ROOT</a></span></span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/../../locales/</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span>
|
1874
1872
|
|
1875
1873
|
<span class='comment'># Initializes a new Bovem application.
|
1876
1874
|
</span> <span class='comment'>#
|
@@ -1882,9 +1880,9 @@
|
|
1882
1880
|
</span> <span class='comment'># @return [Application] The created application.
|
1883
1881
|
</span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
1884
1882
|
<span class='kw'>unless</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
1885
|
-
<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>
|
1886
|
-
<span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Application</span><span class='comma'>,</span> <span class='symbol'>:missing_block</span><span class='comma'>,</span>
|
1887
|
-
<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='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'>LOCALE_ROOT</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_missing_app_block'>missing_app_block</span>
|
1883
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors.html" title="Bovem::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors/Error.html" title="Bovem::Errors::Error (class)">Error</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Errors/Error.html#initialize-instance_method" title="Bovem::Errors::Error#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
1884
|
+
<span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="Bovem::Application (class)">Application</a></span></span><span class='comma'>,</span> <span class='symbol'>:missing_block</span><span class='comma'>,</span>
|
1885
|
+
<span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="I18n.html" title="Bovem::I18n (class)">I18n</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'><span class='object_link'><a href="#LOCALE_ROOT-constant" title="Bovem::Application::LOCALE_ROOT (constant)">LOCALE_ROOT</a></span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_missing_app_block'>missing_app_block</span>
|
1888
1886
|
<span class='rparen'>)</span>
|
1889
1887
|
<span class='kw'>end</span>
|
1890
1888
|
|
@@ -1904,7 +1902,7 @@
|
|
1904
1902
|
</span> <span class='comment'># @return [Array] If to run the application, the arguments and the specified options.
|
1905
1903
|
</span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setup_application_option'>setup_application_option</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
1906
1904
|
<span class='id identifier rubyid_base_options'>base_options</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
1907
|
-
<span class='label'>name:</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='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'>LOCALE_ROOT</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_default_application_name'>default_application_name</span><span class='comma'>,</span>
|
1905
|
+
<span class='label'>name:</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="I18n.html" title="Bovem::I18n (class)">I18n</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'><span class='object_link'><a href="#LOCALE_ROOT-constant" title="Bovem::Application::LOCALE_ROOT (constant)">LOCALE_ROOT</a></span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_default_application_name'>default_application_name</span><span class='comma'>,</span>
|
1908
1906
|
<span class='label'>parent:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>application:</span> <span class='kw'>nil</span>
|
1909
1907
|
<span class='rbrace'>}</span>
|
1910
1908
|
<span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='id identifier rubyid_base_options'>base_options</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_ensure_hash'>ensure_hash</span><span class='rparen'>)</span>
|
@@ -1930,7 +1928,7 @@
|
|
1930
1928
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
1931
1929
|
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
1932
1930
|
|
1933
|
-
<span class='ivar'>@shell</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_instance'>instance</span>
|
1931
|
+
<span class='ivar'>@shell</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Shell.html" title="Bovem::Shell (class)">Shell</a></span></span><span class='period'>.</span><span class='id identifier rubyid_instance'><span class='object_link'><a href="Shell.html#instance-class_method" title="Bovem::Shell.instance (method)">instance</a></span></span>
|
1934
1932
|
<span class='ivar'>@console</span> <span class='op'>=</span> <span class='ivar'>@shell</span><span class='period'>.</span><span class='id identifier rubyid_console'>console</span>
|
1935
1933
|
<span class='ivar'>@skip_commands</span> <span class='op'>=</span> <span class='kw'>false</span>
|
1936
1934
|
<span class='ivar'>@show_commands</span> <span class='op'>=</span> <span class='kw'>false</span>
|
@@ -1977,7 +1975,7 @@
|
|
1977
1975
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_command_help'>command_help</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</span>
|
1978
1976
|
<span class='id identifier rubyid_fetch_commands_for_help'>fetch_commands_for_help</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</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_arg'>arg</span><span class='op'>|</span>
|
1979
1977
|
<span class='comment'># Find the command across
|
1980
|
-
</span> <span class='id identifier rubyid_next_command'>next_command</span> <span class='op'>=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Parser</span><span class='period'>.</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='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1978
|
+
</span> <span class='id identifier rubyid_next_command'>next_command</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Parser.html" title="Bovem::Parser (class)">Parser</a></span></span><span class='period'>.</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='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1981
1979
|
<span class='kw'>break</span> <span class='kw'>unless</span> <span class='id identifier rubyid_next_command'>next_command</span>
|
1982
1980
|
<span class='id identifier rubyid_command'>command</span> <span class='op'>=</span> <span class='id identifier rubyid_command'>command</span><span class='period'>.</span><span class='id identifier rubyid_commands'>commands</span><span class='lbracket'>[</span><span class='id identifier rubyid_next_command'>next_command</span><span class='lbracket'>[</span><span class='symbol'>:name</span><span class='rbracket'>]</span><span class='rbracket'>]</span>
|
1983
1981
|
<span class='kw'>end</span>
|
@@ -2013,7 +2011,7 @@
|
|
2013
2011
|
<div class="method_details ">
|
2014
2012
|
<h3 class="signature " id="skip_commands-instance_method">
|
2015
2013
|
|
2016
|
-
|
2014
|
+
#<strong>skip_commands</strong> ⇒ <tt>Boolean</tt>
|
2017
2015
|
|
2018
2016
|
|
2019
2017
|
|
@@ -2198,7 +2196,7 @@
|
|
2198
2196
|
<td>
|
2199
2197
|
<pre class="code"><span class="info file"># File 'lib/bovem/application.rb', line 24</span>
|
2200
2198
|
|
2201
|
-
<span class='kw'>class</span> <span class='const'>Application</span> <span class='op'><</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Command</span>
|
2199
|
+
<span class='kw'>class</span> <span class='const'><span class='object_link'><a href="" title="Bovem::Application (class)">Application</a></span></span> <span class='op'><</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Command.html" title="Bovem::Command (class)">Command</a></span></span>
|
2202
2200
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:version</span>
|
2203
2201
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:shell</span>
|
2204
2202
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:console</span>
|
@@ -2207,7 +2205,7 @@
|
|
2207
2205
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:output_commands</span>
|
2208
2206
|
|
2209
2207
|
<span class='comment'># The location of the locales translation files.
|
2210
|
-
</span> <span class='const'>LOCALE_ROOT</span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/../../locales/</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span>
|
2208
|
+
</span> <span class='const'><span class='object_link'><a href="#LOCALE_ROOT-constant" title="Bovem::Application::LOCALE_ROOT (constant)">LOCALE_ROOT</a></span></span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/../../locales/</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span>
|
2211
2209
|
|
2212
2210
|
<span class='comment'># Initializes a new Bovem application.
|
2213
2211
|
</span> <span class='comment'>#
|
@@ -2219,9 +2217,9 @@
|
|
2219
2217
|
</span> <span class='comment'># @return [Application] The created application.
|
2220
2218
|
</span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
2221
2219
|
<span class='kw'>unless</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
2222
|
-
<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>
|
2223
|
-
<span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Application</span><span class='comma'>,</span> <span class='symbol'>:missing_block</span><span class='comma'>,</span>
|
2224
|
-
<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='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'>LOCALE_ROOT</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_missing_app_block'>missing_app_block</span>
|
2220
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors.html" title="Bovem::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors/Error.html" title="Bovem::Errors::Error (class)">Error</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Errors/Error.html#initialize-instance_method" title="Bovem::Errors::Error#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
2221
|
+
<span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="Bovem::Application (class)">Application</a></span></span><span class='comma'>,</span> <span class='symbol'>:missing_block</span><span class='comma'>,</span>
|
2222
|
+
<span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="I18n.html" title="Bovem::I18n (class)">I18n</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'><span class='object_link'><a href="#LOCALE_ROOT-constant" title="Bovem::Application::LOCALE_ROOT (constant)">LOCALE_ROOT</a></span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_missing_app_block'>missing_app_block</span>
|
2225
2223
|
<span class='rparen'>)</span>
|
2226
2224
|
<span class='kw'>end</span>
|
2227
2225
|
|
@@ -2241,7 +2239,7 @@
|
|
2241
2239
|
</span> <span class='comment'># @return [Array] If to run the application, the arguments and the specified options.
|
2242
2240
|
</span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setup_application_option'>setup_application_option</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
2243
2241
|
<span class='id identifier rubyid_base_options'>base_options</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
2244
|
-
<span class='label'>name:</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='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'>LOCALE_ROOT</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_default_application_name'>default_application_name</span><span class='comma'>,</span>
|
2242
|
+
<span class='label'>name:</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="I18n.html" title="Bovem::I18n (class)">I18n</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'><span class='object_link'><a href="#LOCALE_ROOT-constant" title="Bovem::Application::LOCALE_ROOT (constant)">LOCALE_ROOT</a></span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_default_application_name'>default_application_name</span><span class='comma'>,</span>
|
2245
2243
|
<span class='label'>parent:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>application:</span> <span class='kw'>nil</span>
|
2246
2244
|
<span class='rbrace'>}</span>
|
2247
2245
|
<span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='id identifier rubyid_base_options'>base_options</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_ensure_hash'>ensure_hash</span><span class='rparen'>)</span>
|
@@ -2267,7 +2265,7 @@
|
|
2267
2265
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
2268
2266
|
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
2269
2267
|
|
2270
|
-
<span class='ivar'>@shell</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_instance'>instance</span>
|
2268
|
+
<span class='ivar'>@shell</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Shell.html" title="Bovem::Shell (class)">Shell</a></span></span><span class='period'>.</span><span class='id identifier rubyid_instance'><span class='object_link'><a href="Shell.html#instance-class_method" title="Bovem::Shell.instance (method)">instance</a></span></span>
|
2271
2269
|
<span class='ivar'>@console</span> <span class='op'>=</span> <span class='ivar'>@shell</span><span class='period'>.</span><span class='id identifier rubyid_console'>console</span>
|
2272
2270
|
<span class='ivar'>@skip_commands</span> <span class='op'>=</span> <span class='kw'>false</span>
|
2273
2271
|
<span class='ivar'>@show_commands</span> <span class='op'>=</span> <span class='kw'>false</span>
|
@@ -2314,7 +2312,7 @@
|
|
2314
2312
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_command_help'>command_help</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</span>
|
2315
2313
|
<span class='id identifier rubyid_fetch_commands_for_help'>fetch_commands_for_help</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</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_arg'>arg</span><span class='op'>|</span>
|
2316
2314
|
<span class='comment'># Find the command across
|
2317
|
-
</span> <span class='id identifier rubyid_next_command'>next_command</span> <span class='op'>=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Parser</span><span class='period'>.</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='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
2315
|
+
</span> <span class='id identifier rubyid_next_command'>next_command</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Parser.html" title="Bovem::Parser (class)">Parser</a></span></span><span class='period'>.</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='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
2318
2316
|
<span class='kw'>break</span> <span class='kw'>unless</span> <span class='id identifier rubyid_next_command'>next_command</span>
|
2319
2317
|
<span class='id identifier rubyid_command'>command</span> <span class='op'>=</span> <span class='id identifier rubyid_command'>command</span><span class='period'>.</span><span class='id identifier rubyid_commands'>commands</span><span class='lbracket'>[</span><span class='id identifier rubyid_next_command'>next_command</span><span class='lbracket'>[</span><span class='symbol'>:name</span><span class='rbracket'>]</span><span class='rbracket'>]</span>
|
2320
2318
|
<span class='kw'>end</span>
|
@@ -2350,7 +2348,7 @@
|
|
2350
2348
|
<div class="method_details ">
|
2351
2349
|
<h3 class="signature " id="version-instance_method">
|
2352
2350
|
|
2353
|
-
|
2351
|
+
#<strong>version</strong>(value = nil) ⇒ <tt>String|nil</tt>
|
2354
2352
|
|
2355
2353
|
|
2356
2354
|
|
@@ -2556,7 +2554,7 @@
|
|
2556
2554
|
<td>
|
2557
2555
|
<pre class="code"><span class="info file"># File 'lib/bovem/application.rb', line 24</span>
|
2558
2556
|
|
2559
|
-
<span class='kw'>class</span> <span class='const'>Application</span> <span class='op'><</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Command</span>
|
2557
|
+
<span class='kw'>class</span> <span class='const'><span class='object_link'><a href="" title="Bovem::Application (class)">Application</a></span></span> <span class='op'><</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Command.html" title="Bovem::Command (class)">Command</a></span></span>
|
2560
2558
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:version</span>
|
2561
2559
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:shell</span>
|
2562
2560
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:console</span>
|
@@ -2565,7 +2563,7 @@
|
|
2565
2563
|
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:output_commands</span>
|
2566
2564
|
|
2567
2565
|
<span class='comment'># The location of the locales translation files.
|
2568
|
-
</span> <span class='const'>LOCALE_ROOT</span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/../../locales/</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span>
|
2566
|
+
</span> <span class='const'><span class='object_link'><a href="#LOCALE_ROOT-constant" title="Bovem::Application::LOCALE_ROOT (constant)">LOCALE_ROOT</a></span></span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/../../locales/</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span>
|
2569
2567
|
|
2570
2568
|
<span class='comment'># Initializes a new Bovem application.
|
2571
2569
|
</span> <span class='comment'>#
|
@@ -2577,9 +2575,9 @@
|
|
2577
2575
|
</span> <span class='comment'># @return [Application] The created application.
|
2578
2576
|
</span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
2579
2577
|
<span class='kw'>unless</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
2580
|
-
<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>
|
2581
|
-
<span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Application</span><span class='comma'>,</span> <span class='symbol'>:missing_block</span><span class='comma'>,</span>
|
2582
|
-
<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='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'>LOCALE_ROOT</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_missing_app_block'>missing_app_block</span>
|
2578
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors.html" title="Bovem::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors/Error.html" title="Bovem::Errors::Error (class)">Error</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Errors/Error.html#initialize-instance_method" title="Bovem::Errors::Error#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
2579
|
+
<span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="Bovem::Application (class)">Application</a></span></span><span class='comma'>,</span> <span class='symbol'>:missing_block</span><span class='comma'>,</span>
|
2580
|
+
<span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="I18n.html" title="Bovem::I18n (class)">I18n</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'><span class='object_link'><a href="#LOCALE_ROOT-constant" title="Bovem::Application::LOCALE_ROOT (constant)">LOCALE_ROOT</a></span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_missing_app_block'>missing_app_block</span>
|
2583
2581
|
<span class='rparen'>)</span>
|
2584
2582
|
<span class='kw'>end</span>
|
2585
2583
|
|
@@ -2599,7 +2597,7 @@
|
|
2599
2597
|
</span> <span class='comment'># @return [Array] If to run the application, the arguments and the specified options.
|
2600
2598
|
</span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setup_application_option'>setup_application_option</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
2601
2599
|
<span class='id identifier rubyid_base_options'>base_options</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
2602
|
-
<span class='label'>name:</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='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'>LOCALE_ROOT</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_default_application_name'>default_application_name</span><span class='comma'>,</span>
|
2600
|
+
<span class='label'>name:</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="I18n.html" title="Bovem::I18n (class)">I18n</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'><span class='object_link'><a href="#LOCALE_ROOT-constant" title="Bovem::Application::LOCALE_ROOT (constant)">LOCALE_ROOT</a></span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_default_application_name'>default_application_name</span><span class='comma'>,</span>
|
2603
2601
|
<span class='label'>parent:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>application:</span> <span class='kw'>nil</span>
|
2604
2602
|
<span class='rbrace'>}</span>
|
2605
2603
|
<span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='id identifier rubyid_base_options'>base_options</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_ensure_hash'>ensure_hash</span><span class='rparen'>)</span>
|
@@ -2625,7 +2623,7 @@
|
|
2625
2623
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
2626
2624
|
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
2627
2625
|
|
2628
|
-
<span class='ivar'>@shell</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_instance'>instance</span>
|
2626
|
+
<span class='ivar'>@shell</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Shell.html" title="Bovem::Shell (class)">Shell</a></span></span><span class='period'>.</span><span class='id identifier rubyid_instance'><span class='object_link'><a href="Shell.html#instance-class_method" title="Bovem::Shell.instance (method)">instance</a></span></span>
|
2629
2627
|
<span class='ivar'>@console</span> <span class='op'>=</span> <span class='ivar'>@shell</span><span class='period'>.</span><span class='id identifier rubyid_console'>console</span>
|
2630
2628
|
<span class='ivar'>@skip_commands</span> <span class='op'>=</span> <span class='kw'>false</span>
|
2631
2629
|
<span class='ivar'>@show_commands</span> <span class='op'>=</span> <span class='kw'>false</span>
|
@@ -2672,7 +2670,7 @@
|
|
2672
2670
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_command_help'>command_help</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</span>
|
2673
2671
|
<span class='id identifier rubyid_fetch_commands_for_help'>fetch_commands_for_help</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</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_arg'>arg</span><span class='op'>|</span>
|
2674
2672
|
<span class='comment'># Find the command across
|
2675
|
-
</span> <span class='id identifier rubyid_next_command'>next_command</span> <span class='op'>=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Parser</span><span class='period'>.</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='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
2673
|
+
</span> <span class='id identifier rubyid_next_command'>next_command</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Parser.html" title="Bovem::Parser (class)">Parser</a></span></span><span class='period'>.</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='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
2676
2674
|
<span class='kw'>break</span> <span class='kw'>unless</span> <span class='id identifier rubyid_next_command'>next_command</span>
|
2677
2675
|
<span class='id identifier rubyid_command'>command</span> <span class='op'>=</span> <span class='id identifier rubyid_command'>command</span><span class='period'>.</span><span class='id identifier rubyid_commands'>commands</span><span class='lbracket'>[</span><span class='id identifier rubyid_next_command'>next_command</span><span class='lbracket'>[</span><span class='symbol'>:name</span><span class='rbracket'>]</span><span class='rbracket'>]</span>
|
2678
2676
|
<span class='kw'>end</span>
|
@@ -2713,7 +2711,7 @@
|
|
2713
2711
|
<div class="method_details first">
|
2714
2712
|
<h3 class="signature first" id="create-class_method">
|
2715
2713
|
|
2716
|
-
|
2714
|
+
.<strong>create</strong>(options = {}, &block) ⇒ <tt><span class='object_link'><a href="" title="Bovem::Application (class)">Application</a></span></tt>
|
2717
2715
|
|
2718
2716
|
|
2719
2717
|
|
@@ -2805,9 +2803,9 @@
|
|
2805
2803
|
|
2806
2804
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
2807
2805
|
<span class='kw'>unless</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
2808
|
-
<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>
|
2809
|
-
<span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Application</span><span class='comma'>,</span> <span class='symbol'>:missing_block</span><span class='comma'>,</span>
|
2810
|
-
<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='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'>LOCALE_ROOT</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_missing_app_block'>missing_app_block</span>
|
2806
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors.html" title="Bovem::Errors (module)">Errors</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Errors/Error.html" title="Bovem::Errors::Error (class)">Error</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Errors/Error.html#initialize-instance_method" title="Bovem::Errors::Error#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
2807
|
+
<span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="Bovem::Application (class)">Application</a></span></span><span class='comma'>,</span> <span class='symbol'>:missing_block</span><span class='comma'>,</span>
|
2808
|
+
<span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="I18n.html" title="Bovem::I18n (class)">I18n</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'><span class='object_link'><a href="#LOCALE_ROOT-constant" title="Bovem::Application::LOCALE_ROOT (constant)">LOCALE_ROOT</a></span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_missing_app_block'>missing_app_block</span>
|
2811
2809
|
<span class='rparen'>)</span>
|
2812
2810
|
<span class='kw'>end</span>
|
2813
2811
|
|
@@ -2828,7 +2826,7 @@
|
|
2828
2826
|
<div class="method_details ">
|
2829
2827
|
<h3 class="signature " id="create_application-class_method">
|
2830
2828
|
|
2831
|
-
|
2829
|
+
.<strong>create_application</strong>(run, args, options, &block) ⇒ <tt><span class='object_link'><a href="" title="Bovem::Application (class)">Application</a></span></tt>
|
2832
2830
|
|
2833
2831
|
|
2834
2832
|
|
@@ -2938,7 +2936,7 @@
|
|
2938
2936
|
<div class="method_details ">
|
2939
2937
|
<h3 class="signature " id="setup_application_option-class_method">
|
2940
2938
|
|
2941
|
-
|
2939
|
+
.<strong>setup_application_option</strong>(options) ⇒ <tt>Array</tt>
|
2942
2940
|
|
2943
2941
|
|
2944
2942
|
|
@@ -3011,7 +3009,7 @@
|
|
3011
3009
|
|
3012
3010
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setup_application_option'>setup_application_option</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
3013
3011
|
<span class='id identifier rubyid_base_options'>base_options</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
3014
|
-
<span class='label'>name:</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='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'>LOCALE_ROOT</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_default_application_name'>default_application_name</span><span class='comma'>,</span>
|
3012
|
+
<span class='label'>name:</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="I18n.html" title="Bovem::I18n (class)">I18n</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:locale</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>root:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>bovem.application</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='const'><span class='object_link'><a href="#LOCALE_ROOT-constant" title="Bovem::Application::LOCALE_ROOT (constant)">LOCALE_ROOT</a></span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_default_application_name'>default_application_name</span><span class='comma'>,</span>
|
3015
3013
|
<span class='label'>parent:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>application:</span> <span class='kw'>nil</span>
|
3016
3014
|
<span class='rbrace'>}</span>
|
3017
3015
|
<span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='id identifier rubyid_base_options'>base_options</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_ensure_hash'>ensure_hash</span><span class='rparen'>)</span>
|
@@ -3032,7 +3030,7 @@
|
|
3032
3030
|
<div class="method_details first">
|
3033
3031
|
<h3 class="signature first" id="command_help-instance_method">
|
3034
3032
|
|
3035
|
-
|
3033
|
+
#<strong>command_help</strong>(command) ⇒ <tt>Object</tt>
|
3036
3034
|
|
3037
3035
|
|
3038
3036
|
|
@@ -3090,7 +3088,7 @@
|
|
3090
3088
|
<span class='kw'>def</span> <span class='id identifier rubyid_command_help'>command_help</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</span>
|
3091
3089
|
<span class='id identifier rubyid_fetch_commands_for_help'>fetch_commands_for_help</span><span class='lparen'>(</span><span class='id identifier rubyid_command'>command</span><span class='rparen'>)</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_arg'>arg</span><span class='op'>|</span>
|
3092
3090
|
<span class='comment'># Find the command across
|
3093
|
-
</span> <span class='id identifier rubyid_next_command'>next_command</span> <span class='op'>=</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Parser</span><span class='period'>.</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='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
3091
|
+
</span> <span class='id identifier rubyid_next_command'>next_command</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Bovem.html" title="Bovem (module)">Bovem</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Parser.html" title="Bovem::Parser (class)">Parser</a></span></span><span class='period'>.</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='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
3094
3092
|
<span class='kw'>break</span> <span class='kw'>unless</span> <span class='id identifier rubyid_next_command'>next_command</span>
|
3095
3093
|
<span class='id identifier rubyid_command'>command</span> <span class='op'>=</span> <span class='id identifier rubyid_command'>command</span><span class='period'>.</span><span class='id identifier rubyid_commands'>commands</span><span class='lbracket'>[</span><span class='id identifier rubyid_next_command'>next_command</span><span class='lbracket'>[</span><span class='symbol'>:name</span><span class='rbracket'>]</span><span class='rbracket'>]</span>
|
3096
3094
|
<span class='kw'>end</span>
|
@@ -3105,7 +3103,7 @@
|
|
3105
3103
|
<div class="method_details ">
|
3106
3104
|
<h3 class="signature " id="executable_name-instance_method">
|
3107
3105
|
|
3108
|
-
|
3106
|
+
#<strong>executable_name</strong> ⇒ <tt>String</tt>
|
3109
3107
|
|
3110
3108
|
|
3111
3109
|
|
@@ -3162,7 +3160,7 @@
|
|
3162
3160
|
<div class="method_details ">
|
3163
3161
|
<h3 class="signature " id="execute-instance_method">
|
3164
3162
|
|
3165
|
-
|
3163
|
+
#<strong>execute</strong>(args = nil) ⇒ <tt>Object</tt>
|
3166
3164
|
|
3167
3165
|
|
3168
3166
|
|
@@ -3223,7 +3221,7 @@
|
|
3223
3221
|
<div class="method_details ">
|
3224
3222
|
<h3 class="signature " id="help_option-instance_method">
|
3225
3223
|
|
3226
|
-
|
3224
|
+
#<strong>help_option</strong> ⇒ <tt>Object</tt>
|
3227
3225
|
|
3228
3226
|
|
3229
3227
|
|
@@ -3271,7 +3269,7 @@
|
|
3271
3269
|
<div class="method_details ">
|
3272
3270
|
<h3 class="signature " id="run-instance_method">
|
3273
3271
|
|
3274
|
-
|
3272
|
+
#<strong>run</strong>(command, message = nil, show_exit = true, fatal = true) ⇒ <tt>Hash</tt>
|
3275
3273
|
|
3276
3274
|
|
3277
3275
|
|
@@ -3399,11 +3397,12 @@
|
|
3399
3397
|
|
3400
3398
|
</div>
|
3401
3399
|
|
3402
|
-
|
3403
|
-
Generated on
|
3400
|
+
<div id="footer">
|
3401
|
+
Generated on Thu Jan 12 16:11:01 2017 by
|
3404
3402
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
3405
|
-
0.
|
3403
|
+
0.9.7 (ruby-2.3.0).
|
3406
3404
|
</div>
|
3407
3405
|
|
3406
|
+
</div>
|
3408
3407
|
</body>
|
3409
3408
|
</html>
|