nucleon 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/core/config.rb +1 -1
- data/lib/core/core.rb +2 -2
- data/lib/core/environment.rb +9 -6
- data/lib/core/facade.rb +2 -2
- data/lib/core/gems.rb +13 -6
- data/lib/core/manager.rb +12 -5
- data/lib/core/mixin/action/commit.rb +12 -6
- data/lib/core/mixin/action/project.rb +15 -28
- data/lib/core/mixin/action/push.rb +14 -5
- data/lib/core/mixin/action/registration.rb +277 -28
- data/lib/core/mixin/macro/object_interface.rb +3 -3
- data/lib/core/mixin/sub_config.rb +1 -1
- data/lib/core/plugin/action.rb +20 -51
- data/lib/core/plugin/base.rb +41 -8
- data/lib/core/plugin/project.rb +55 -8
- data/lib/nucleon/action/project/add.rb +6 -20
- data/lib/nucleon/action/project/create.rb +2 -2
- data/lib/nucleon/action/project/remove.rb +3 -3
- data/lib/nucleon/action/project/save.rb +3 -3
- data/lib/nucleon/action/project/update.rb +2 -2
- data/lib/nucleon/extension/project.rb +16 -0
- data/lib/nucleon/project/git.rb +1 -0
- data/lib/nucleon/project/github.rb +19 -7
- data/nucleon.gemspec +120 -2
- data/rdoc/site/0.2.1/ARCHITECTURE_rdoc.html +640 -0
- data/rdoc/site/0.2.1/Hash.html +353 -0
- data/rdoc/site/0.2.1/Kernel.html +420 -0
- data/rdoc/site/0.2.1/Nucleon.html +674 -0
- data/rdoc/site/0.2.1/Nucleon/Action.html +286 -0
- data/rdoc/site/0.2.1/Nucleon/Action/Extract.html +457 -0
- data/rdoc/site/0.2.1/Nucleon/Action/Project.html +285 -0
- data/rdoc/site/0.2.1/Nucleon/Action/Project/Add.html +502 -0
- data/rdoc/site/0.2.1/Nucleon/Action/Project/Create.html +459 -0
- data/rdoc/site/0.2.1/Nucleon/Action/Project/Remove.html +505 -0
- data/rdoc/site/0.2.1/Nucleon/Action/Project/Save.html +478 -0
- data/rdoc/site/0.2.1/Nucleon/Action/Project/Update.html +425 -0
- data/rdoc/site/0.2.1/Nucleon/Codes.html +569 -0
- data/rdoc/site/0.2.1/Nucleon/Command.html +281 -0
- data/rdoc/site/0.2.1/Nucleon/Command/Bash.html +550 -0
- data/rdoc/site/0.2.1/Nucleon/Config.html +1634 -0
- data/rdoc/site/0.2.1/Nucleon/Config/Collection.html +515 -0
- data/rdoc/site/0.2.1/Nucleon/Config/Options.html +495 -0
- data/rdoc/site/0.2.1/Nucleon/Core.html +641 -0
- data/rdoc/site/0.2.1/Nucleon/Environment.html +1210 -0
- data/rdoc/site/0.2.1/Nucleon/Errors.html +281 -0
- data/rdoc/site/0.2.1/Nucleon/Errors/BatchError.html +287 -0
- data/rdoc/site/0.2.1/Nucleon/Errors/NucleonError.html +663 -0
- data/rdoc/site/0.2.1/Nucleon/Errors/SSHUnavailable.html +287 -0
- data/rdoc/site/0.2.1/Nucleon/Event.html +281 -0
- data/rdoc/site/0.2.1/Nucleon/Event/Regex.html +473 -0
- data/rdoc/site/0.2.1/Nucleon/Facade.html +2452 -0
- data/rdoc/site/0.2.1/Nucleon/Gems.html +641 -0
- data/rdoc/site/0.2.1/Nucleon/Manager.html +1862 -0
- data/rdoc/site/0.2.1/Nucleon/Mixin.html +291 -0
- data/rdoc/site/0.2.1/Nucleon/Mixin/Action.html +284 -0
- data/rdoc/site/0.2.1/Nucleon/Mixin/Action/Commit.html +387 -0
- data/rdoc/site/0.2.1/Nucleon/Mixin/Action/Project.html +401 -0
- data/rdoc/site/0.2.1/Nucleon/Mixin/Action/Push.html +377 -0
- data/rdoc/site/0.2.1/Nucleon/Mixin/Action/Registration.html +575 -0
- data/rdoc/site/0.2.1/Nucleon/Mixin/Colors.html +551 -0
- data/rdoc/site/0.2.1/Nucleon/Mixin/ConfigCollection.html +487 -0
- data/rdoc/site/0.2.1/Nucleon/Mixin/ConfigOptions.html +455 -0
- data/rdoc/site/0.2.1/Nucleon/Mixin/Macro.html +282 -0
- data/rdoc/site/0.2.1/Nucleon/Mixin/Macro/ObjectInterface.html +701 -0
- data/rdoc/site/0.2.1/Nucleon/Mixin/Macro/PluginInterface.html +688 -0
- data/rdoc/site/0.2.1/Nucleon/Mixin/Settings.html +487 -0
- data/rdoc/site/0.2.1/Nucleon/Mixin/SubConfig.html +893 -0
- data/rdoc/site/0.2.1/Nucleon/Parallel.html +332 -0
- data/rdoc/site/0.2.1/Nucleon/Parallel/ClassMethods.html +331 -0
- data/rdoc/site/0.2.1/Nucleon/Parallel/InstanceMethods.html +458 -0
- data/rdoc/site/0.2.1/Nucleon/Plugin.html +288 -0
- data/rdoc/site/0.2.1/Nucleon/Plugin/Action.html +2133 -0
- data/rdoc/site/0.2.1/Nucleon/Plugin/Action/Option.html +465 -0
- data/rdoc/site/0.2.1/Nucleon/Plugin/Base.html +1988 -0
- data/rdoc/site/0.2.1/Nucleon/Plugin/Command.html +765 -0
- data/rdoc/site/0.2.1/Nucleon/Plugin/Event.html +448 -0
- data/rdoc/site/0.2.1/Nucleon/Plugin/Extension.html +287 -0
- data/rdoc/site/0.2.1/Nucleon/Plugin/Project.html +2900 -0
- data/rdoc/site/0.2.1/Nucleon/Plugin/Template.html +482 -0
- data/rdoc/site/0.2.1/Nucleon/Plugin/Translator.html +377 -0
- data/rdoc/site/0.2.1/Nucleon/Project.html +282 -0
- data/rdoc/site/0.2.1/Nucleon/Project/Git.html +1807 -0
- data/rdoc/site/0.2.1/Nucleon/Project/Github.html +555 -0
- data/rdoc/site/0.2.1/Nucleon/Template.html +283 -0
- data/rdoc/site/0.2.1/Nucleon/Template/JSON.html +335 -0
- data/rdoc/site/0.2.1/Nucleon/Template/Wrapper.html +335 -0
- data/rdoc/site/0.2.1/Nucleon/Template/YAML.html +335 -0
- data/rdoc/site/0.2.1/Nucleon/Translator.html +282 -0
- data/rdoc/site/0.2.1/Nucleon/Translator/JSON.html +372 -0
- data/rdoc/site/0.2.1/Nucleon/Translator/YAML.html +372 -0
- data/rdoc/site/0.2.1/Nucleon/Util.html +291 -0
- data/rdoc/site/0.2.1/Nucleon/Util/CLI.html +394 -0
- data/rdoc/site/0.2.1/Nucleon/Util/CLI/Parser.html +1404 -0
- data/rdoc/site/0.2.1/Nucleon/Util/Cache.html +824 -0
- data/rdoc/site/0.2.1/Nucleon/Util/Console.html +1330 -0
- data/rdoc/site/0.2.1/Nucleon/Util/Data.html +1423 -0
- data/rdoc/site/0.2.1/Nucleon/Util/Disk.html +528 -0
- data/rdoc/site/0.2.1/Nucleon/Util/Git.html +367 -0
- data/rdoc/site/0.2.1/Nucleon/Util/Liquid.html +371 -0
- data/rdoc/site/0.2.1/Nucleon/Util/Logger.html +822 -0
- data/rdoc/site/0.2.1/Nucleon/Util/Package.html +564 -0
- data/rdoc/site/0.2.1/Nucleon/Util/SSH.html +1036 -0
- data/rdoc/site/0.2.1/Nucleon/Util/SSH/Keypair.html +607 -0
- data/rdoc/site/0.2.1/Nucleon/Util/Shell.html +697 -0
- data/rdoc/site/0.2.1/Nucleon/Util/Shell/Result.html +503 -0
- data/rdoc/site/0.2.1/README_rdoc.html +318 -0
- data/rdoc/site/0.2.1/TODO_rdoc.html +267 -0
- data/rdoc/site/0.2.1/created.rid +62 -0
- data/rdoc/site/0.2.1/images/add.png +0 -0
- data/rdoc/site/0.2.1/images/brick.png +0 -0
- data/rdoc/site/0.2.1/images/brick_link.png +0 -0
- data/rdoc/site/0.2.1/images/bug.png +0 -0
- data/rdoc/site/0.2.1/images/bullet_black.png +0 -0
- data/rdoc/site/0.2.1/images/bullet_toggle_minus.png +0 -0
- data/rdoc/site/0.2.1/images/bullet_toggle_plus.png +0 -0
- data/rdoc/site/0.2.1/images/date.png +0 -0
- data/rdoc/site/0.2.1/images/delete.png +0 -0
- data/rdoc/site/0.2.1/images/find.png +0 -0
- data/rdoc/site/0.2.1/images/loadingAnimation.gif +0 -0
- data/rdoc/site/0.2.1/images/macFFBgHack.png +0 -0
- data/rdoc/site/0.2.1/images/package.png +0 -0
- data/rdoc/site/0.2.1/images/page_green.png +0 -0
- data/rdoc/site/0.2.1/images/page_white_text.png +0 -0
- data/rdoc/site/0.2.1/images/page_white_width.png +0 -0
- data/rdoc/site/0.2.1/images/plugin.png +0 -0
- data/rdoc/site/0.2.1/images/ruby.png +0 -0
- data/rdoc/site/0.2.1/images/tag_blue.png +0 -0
- data/rdoc/site/0.2.1/images/tag_green.png +0 -0
- data/rdoc/site/0.2.1/images/transparent.png +0 -0
- data/rdoc/site/0.2.1/images/wrench.png +0 -0
- data/rdoc/site/0.2.1/images/wrench_orange.png +0 -0
- data/rdoc/site/0.2.1/images/zoom.png +0 -0
- data/rdoc/site/0.2.1/index.html +317 -0
- data/rdoc/site/0.2.1/js/darkfish.js +155 -0
- data/rdoc/site/0.2.1/js/jquery.js +18 -0
- data/rdoc/site/0.2.1/js/navigation.js +142 -0
- data/rdoc/site/0.2.1/js/search.js +94 -0
- data/rdoc/site/0.2.1/js/search_index.js +1 -0
- data/rdoc/site/0.2.1/js/searcher.js +228 -0
- data/rdoc/site/0.2.1/rdoc.css +543 -0
- data/rdoc/site/0.2.1/table_of_contents.html +1718 -0
- metadata +120 -2
|
@@ -0,0 +1,893 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
|
6
|
+
|
|
7
|
+
<title>module Nucleon::Mixin::SubConfig - nucleon 0.2.1</title>
|
|
8
|
+
|
|
9
|
+
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet">
|
|
10
|
+
|
|
11
|
+
<script type="text/javascript">
|
|
12
|
+
var rdoc_rel_prefix = "../../";
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../../js/navigation.js"></script>
|
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../../js/search_index.js"></script>
|
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../../js/search.js"></script>
|
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../../js/searcher.js"></script>
|
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../../js/darkfish.js"></script>
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
<body id="top" class="module">
|
|
24
|
+
<nav id="metadata">
|
|
25
|
+
<nav id="home-section" class="section">
|
|
26
|
+
<h3 class="section-header">
|
|
27
|
+
<a href="../../index.html">Home</a>
|
|
28
|
+
<a href="../../table_of_contents.html#classes">Classes</a>
|
|
29
|
+
<a href="../../table_of_contents.html#methods">Methods</a>
|
|
30
|
+
</h3>
|
|
31
|
+
</nav>
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
|
36
|
+
<h3 class="section-header">
|
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
|
39
|
+
</h3>
|
|
40
|
+
</form>
|
|
41
|
+
|
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
|
43
|
+
</nav>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div id="file-metadata">
|
|
47
|
+
<nav id="file-list-section" class="section">
|
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
|
49
|
+
<ul>
|
|
50
|
+
<li>lib/core/mixin/sub_config.rb
|
|
51
|
+
</ul>
|
|
52
|
+
</nav>
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<div id="class-metadata">
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
<!-- Method Quickref -->
|
|
62
|
+
<nav id="method-list-section" class="section">
|
|
63
|
+
<h3 class="section-header">Methods</h3>
|
|
64
|
+
|
|
65
|
+
<ul class="link-list">
|
|
66
|
+
|
|
67
|
+
<li><a href="#method-i-_clear">#_clear</a>
|
|
68
|
+
|
|
69
|
+
<li><a href="#method-i-_defaults">#_defaults</a>
|
|
70
|
+
|
|
71
|
+
<li><a href="#method-i-_delete">#_delete</a>
|
|
72
|
+
|
|
73
|
+
<li><a href="#method-i-_export">#_export</a>
|
|
74
|
+
|
|
75
|
+
<li><a href="#method-i-_get">#_get</a>
|
|
76
|
+
|
|
77
|
+
<li><a href="#method-i-_import">#_import</a>
|
|
78
|
+
|
|
79
|
+
<li><a href="#method-i-_init">#_init</a>
|
|
80
|
+
|
|
81
|
+
<li><a href="#method-i-_set">#_set</a>
|
|
82
|
+
|
|
83
|
+
<li><a href="#method-i-clear">#clear</a>
|
|
84
|
+
|
|
85
|
+
<li><a href="#method-i-config">#config</a>
|
|
86
|
+
|
|
87
|
+
<li><a href="#method-i-config-3D">#config=</a>
|
|
88
|
+
|
|
89
|
+
<li><a href="#method-i-defaults">#defaults</a>
|
|
90
|
+
|
|
91
|
+
<li><a href="#method-i-delete">#delete</a>
|
|
92
|
+
|
|
93
|
+
<li><a href="#method-i-export">#export</a>
|
|
94
|
+
|
|
95
|
+
<li><a href="#method-i-get">#get</a>
|
|
96
|
+
|
|
97
|
+
<li><a href="#method-i-import">#import</a>
|
|
98
|
+
|
|
99
|
+
<li><a href="#method-i-init_subconfig">#init_subconfig</a>
|
|
100
|
+
|
|
101
|
+
<li><a href="#method-i-set">#set</a>
|
|
102
|
+
|
|
103
|
+
</ul>
|
|
104
|
+
</nav>
|
|
105
|
+
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
<div id="project-metadata">
|
|
109
|
+
<nav id="fileindex-section" class="section project-section">
|
|
110
|
+
<h3 class="section-header">Pages</h3>
|
|
111
|
+
|
|
112
|
+
<ul>
|
|
113
|
+
|
|
114
|
+
<li class="file"><a href="../../ARCHITECTURE_rdoc.html">ARCHITECTURE</a>
|
|
115
|
+
|
|
116
|
+
<li class="file"><a href="../../README_rdoc.html">README</a>
|
|
117
|
+
|
|
118
|
+
<li class="file"><a href="../../TODO_rdoc.html">TODO</a>
|
|
119
|
+
|
|
120
|
+
</ul>
|
|
121
|
+
</nav>
|
|
122
|
+
|
|
123
|
+
<nav id="classindex-section" class="section project-section">
|
|
124
|
+
<h3 class="section-header">Class and Module Index</h3>
|
|
125
|
+
|
|
126
|
+
<ul class="link-list">
|
|
127
|
+
|
|
128
|
+
<li><a href="../../Nucleon.html">Nucleon</a>
|
|
129
|
+
|
|
130
|
+
<li><a href="../../Nucleon/Action.html">Nucleon::Action</a>
|
|
131
|
+
|
|
132
|
+
<li><a href="../../Nucleon/Action/Extract.html">Nucleon::Action::Extract</a>
|
|
133
|
+
|
|
134
|
+
<li><a href="../../Nucleon/Action/Project.html">Nucleon::Action::Project</a>
|
|
135
|
+
|
|
136
|
+
<li><a href="../../Nucleon/Action/Project/Add.html">Nucleon::Action::Project::Add</a>
|
|
137
|
+
|
|
138
|
+
<li><a href="../../Nucleon/Action/Project/Create.html">Nucleon::Action::Project::Create</a>
|
|
139
|
+
|
|
140
|
+
<li><a href="../../Nucleon/Action/Project/Remove.html">Nucleon::Action::Project::Remove</a>
|
|
141
|
+
|
|
142
|
+
<li><a href="../../Nucleon/Action/Project/Save.html">Nucleon::Action::Project::Save</a>
|
|
143
|
+
|
|
144
|
+
<li><a href="../../Nucleon/Action/Project/Update.html">Nucleon::Action::Project::Update</a>
|
|
145
|
+
|
|
146
|
+
<li><a href="../../Nucleon/Codes.html">Nucleon::Codes</a>
|
|
147
|
+
|
|
148
|
+
<li><a href="../../Nucleon/Command.html">Nucleon::Command</a>
|
|
149
|
+
|
|
150
|
+
<li><a href="../../Nucleon/Command/Bash.html">Nucleon::Command::Bash</a>
|
|
151
|
+
|
|
152
|
+
<li><a href="../../Nucleon/Config.html">Nucleon::Config</a>
|
|
153
|
+
|
|
154
|
+
<li><a href="../../Nucleon/Config/Collection.html">Nucleon::Config::Collection</a>
|
|
155
|
+
|
|
156
|
+
<li><a href="../../Nucleon/Config/Options.html">Nucleon::Config::Options</a>
|
|
157
|
+
|
|
158
|
+
<li><a href="../../Nucleon/Core.html">Nucleon::Core</a>
|
|
159
|
+
|
|
160
|
+
<li><a href="../../Nucleon/Environment.html">Nucleon::Environment</a>
|
|
161
|
+
|
|
162
|
+
<li><a href="../../Nucleon/Errors.html">Nucleon::Errors</a>
|
|
163
|
+
|
|
164
|
+
<li><a href="../../Nucleon/Errors/BatchError.html">Nucleon::Errors::BatchError</a>
|
|
165
|
+
|
|
166
|
+
<li><a href="../../Nucleon/Errors/NucleonError.html">Nucleon::Errors::NucleonError</a>
|
|
167
|
+
|
|
168
|
+
<li><a href="../../Nucleon/Errors/SSHUnavailable.html">Nucleon::Errors::SSHUnavailable</a>
|
|
169
|
+
|
|
170
|
+
<li><a href="../../Nucleon/Event.html">Nucleon::Event</a>
|
|
171
|
+
|
|
172
|
+
<li><a href="../../Nucleon/Event/Regex.html">Nucleon::Event::Regex</a>
|
|
173
|
+
|
|
174
|
+
<li><a href="../../Nucleon/Facade.html">Nucleon::Facade</a>
|
|
175
|
+
|
|
176
|
+
<li><a href="../../Nucleon/Gems.html">Nucleon::Gems</a>
|
|
177
|
+
|
|
178
|
+
<li><a href="../../Nucleon/Manager.html">Nucleon::Manager</a>
|
|
179
|
+
|
|
180
|
+
<li><a href="../../Nucleon/Mixin.html">Nucleon::Mixin</a>
|
|
181
|
+
|
|
182
|
+
<li><a href="../../Nucleon/Mixin/Action.html">Nucleon::Mixin::Action</a>
|
|
183
|
+
|
|
184
|
+
<li><a href="../../Nucleon/Mixin/Action/Commit.html">Nucleon::Mixin::Action::Commit</a>
|
|
185
|
+
|
|
186
|
+
<li><a href="../../Nucleon/Mixin/Action/Project.html">Nucleon::Mixin::Action::Project</a>
|
|
187
|
+
|
|
188
|
+
<li><a href="../../Nucleon/Mixin/Action/Push.html">Nucleon::Mixin::Action::Push</a>
|
|
189
|
+
|
|
190
|
+
<li><a href="../../Nucleon/Mixin/Action/Registration.html">Nucleon::Mixin::Action::Registration</a>
|
|
191
|
+
|
|
192
|
+
<li><a href="../../Nucleon/Mixin/Colors.html">Nucleon::Mixin::Colors</a>
|
|
193
|
+
|
|
194
|
+
<li><a href="../../Nucleon/Mixin/ConfigCollection.html">Nucleon::Mixin::ConfigCollection</a>
|
|
195
|
+
|
|
196
|
+
<li><a href="../../Nucleon/Mixin/ConfigOptions.html">Nucleon::Mixin::ConfigOptions</a>
|
|
197
|
+
|
|
198
|
+
<li><a href="../../Nucleon/Mixin/Macro.html">Nucleon::Mixin::Macro</a>
|
|
199
|
+
|
|
200
|
+
<li><a href="../../Nucleon/Mixin/Macro/ObjectInterface.html">Nucleon::Mixin::Macro::ObjectInterface</a>
|
|
201
|
+
|
|
202
|
+
<li><a href="../../Nucleon/Mixin/Macro/PluginInterface.html">Nucleon::Mixin::Macro::PluginInterface</a>
|
|
203
|
+
|
|
204
|
+
<li><a href="../../Nucleon/Mixin/Settings.html">Nucleon::Mixin::Settings</a>
|
|
205
|
+
|
|
206
|
+
<li><a href="../../Nucleon/Mixin/SubConfig.html">Nucleon::Mixin::SubConfig</a>
|
|
207
|
+
|
|
208
|
+
<li><a href="../../Nucleon/Parallel.html">Nucleon::Parallel</a>
|
|
209
|
+
|
|
210
|
+
<li><a href="../../Nucleon/Parallel/ClassMethods.html">Nucleon::Parallel::ClassMethods</a>
|
|
211
|
+
|
|
212
|
+
<li><a href="../../Nucleon/Parallel/InstanceMethods.html">Nucleon::Parallel::InstanceMethods</a>
|
|
213
|
+
|
|
214
|
+
<li><a href="../../Nucleon/Plugin.html">Nucleon::Plugin</a>
|
|
215
|
+
|
|
216
|
+
<li><a href="../../Nucleon/Plugin/Action.html">Nucleon::Plugin::Action</a>
|
|
217
|
+
|
|
218
|
+
<li><a href="../../Nucleon/Plugin/Action/Option.html">Nucleon::Plugin::Action::Option</a>
|
|
219
|
+
|
|
220
|
+
<li><a href="../../Nucleon/Plugin/Base.html">Nucleon::Plugin::Base</a>
|
|
221
|
+
|
|
222
|
+
<li><a href="../../Nucleon/Plugin/Command.html">Nucleon::Plugin::Command</a>
|
|
223
|
+
|
|
224
|
+
<li><a href="../../Nucleon/Plugin/Event.html">Nucleon::Plugin::Event</a>
|
|
225
|
+
|
|
226
|
+
<li><a href="../../Nucleon/Plugin/Extension.html">Nucleon::Plugin::Extension</a>
|
|
227
|
+
|
|
228
|
+
<li><a href="../../Nucleon/Plugin/Project.html">Nucleon::Plugin::Project</a>
|
|
229
|
+
|
|
230
|
+
<li><a href="../../Nucleon/Plugin/Template.html">Nucleon::Plugin::Template</a>
|
|
231
|
+
|
|
232
|
+
<li><a href="../../Nucleon/Plugin/Translator.html">Nucleon::Plugin::Translator</a>
|
|
233
|
+
|
|
234
|
+
<li><a href="../../Nucleon/Project.html">Nucleon::Project</a>
|
|
235
|
+
|
|
236
|
+
<li><a href="../../Nucleon/Project/Git.html">Nucleon::Project::Git</a>
|
|
237
|
+
|
|
238
|
+
<li><a href="../../Nucleon/Project/Github.html">Nucleon::Project::Github</a>
|
|
239
|
+
|
|
240
|
+
<li><a href="../../Nucleon/Template.html">Nucleon::Template</a>
|
|
241
|
+
|
|
242
|
+
<li><a href="../../Nucleon/Template/JSON.html">Nucleon::Template::JSON</a>
|
|
243
|
+
|
|
244
|
+
<li><a href="../../Nucleon/Template/Wrapper.html">Nucleon::Template::Wrapper</a>
|
|
245
|
+
|
|
246
|
+
<li><a href="../../Nucleon/Template/YAML.html">Nucleon::Template::YAML</a>
|
|
247
|
+
|
|
248
|
+
<li><a href="../../Nucleon/Translator.html">Nucleon::Translator</a>
|
|
249
|
+
|
|
250
|
+
<li><a href="../../Nucleon/Translator/JSON.html">Nucleon::Translator::JSON</a>
|
|
251
|
+
|
|
252
|
+
<li><a href="../../Nucleon/Translator/YAML.html">Nucleon::Translator::YAML</a>
|
|
253
|
+
|
|
254
|
+
<li><a href="../../Nucleon/Util.html">Nucleon::Util</a>
|
|
255
|
+
|
|
256
|
+
<li><a href="../../Nucleon/Util/CLI.html">Nucleon::Util::CLI</a>
|
|
257
|
+
|
|
258
|
+
<li><a href="../../Nucleon/Util/CLI/Parser.html">Nucleon::Util::CLI::Parser</a>
|
|
259
|
+
|
|
260
|
+
<li><a href="../../Nucleon/Util/Cache.html">Nucleon::Util::Cache</a>
|
|
261
|
+
|
|
262
|
+
<li><a href="../../Nucleon/Util/Console.html">Nucleon::Util::Console</a>
|
|
263
|
+
|
|
264
|
+
<li><a href="../../Nucleon/Util/Data.html">Nucleon::Util::Data</a>
|
|
265
|
+
|
|
266
|
+
<li><a href="../../Nucleon/Util/Disk.html">Nucleon::Util::Disk</a>
|
|
267
|
+
|
|
268
|
+
<li><a href="../../Nucleon/Util/Git.html">Nucleon::Util::Git</a>
|
|
269
|
+
|
|
270
|
+
<li><a href="../../Nucleon/Util/Liquid.html">Nucleon::Util::Liquid</a>
|
|
271
|
+
|
|
272
|
+
<li><a href="../../Nucleon/Util/Logger.html">Nucleon::Util::Logger</a>
|
|
273
|
+
|
|
274
|
+
<li><a href="../../Nucleon/Util/Package.html">Nucleon::Util::Package</a>
|
|
275
|
+
|
|
276
|
+
<li><a href="../../Nucleon/Util/SSH.html">Nucleon::Util::SSH</a>
|
|
277
|
+
|
|
278
|
+
<li><a href="../../Nucleon/Util/SSH/Keypair.html">Nucleon::Util::SSH::Keypair</a>
|
|
279
|
+
|
|
280
|
+
<li><a href="../../Nucleon/Util/Shell.html">Nucleon::Util::Shell</a>
|
|
281
|
+
|
|
282
|
+
<li><a href="../../Nucleon/Util/Shell/Result.html">Nucleon::Util::Shell::Result</a>
|
|
283
|
+
|
|
284
|
+
<li><a href="../../Hash.html">Hash</a>
|
|
285
|
+
|
|
286
|
+
<li><a href="../../Kernel.html">Kernel</a>
|
|
287
|
+
|
|
288
|
+
</ul>
|
|
289
|
+
</nav>
|
|
290
|
+
|
|
291
|
+
</div>
|
|
292
|
+
</nav>
|
|
293
|
+
|
|
294
|
+
<div id="documentation">
|
|
295
|
+
<h1 class="module">module Nucleon::Mixin::SubConfig</h1>
|
|
296
|
+
|
|
297
|
+
<div id="description" class="description">
|
|
298
|
+
|
|
299
|
+
</div><!-- description -->
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
<!-- Methods -->
|
|
314
|
+
|
|
315
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
|
316
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
<div id="method-i-clear" class="method-detail ">
|
|
320
|
+
|
|
321
|
+
<div class="method-heading">
|
|
322
|
+
<span class="method-name">clear</span><span
|
|
323
|
+
class="method-args">()</span>
|
|
324
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
325
|
+
</div>
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
<div class="method-description">
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
<div class="method-source-code" id="clear-source">
|
|
335
|
+
<pre><span class="ruby-comment"># File lib/core/mixin/sub_config.rb, line 98</span>
|
|
336
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">clear</span>
|
|
337
|
+
<span class="ruby-identifier">init_subconfig</span>
|
|
338
|
+
<span class="ruby-identifier">config</span>.<span class="ruby-identifier">clear</span>
|
|
339
|
+
<span class="ruby-keyword">end</span></pre>
|
|
340
|
+
</div><!-- clear-source -->
|
|
341
|
+
|
|
342
|
+
</div>
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
</div><!-- clear-method -->
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
<div id="method-i-config" class="method-detail ">
|
|
351
|
+
|
|
352
|
+
<div class="method-heading">
|
|
353
|
+
<span class="method-name">config</span><span
|
|
354
|
+
class="method-args">()</span>
|
|
355
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
356
|
+
</div>
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
<div class="method-description">
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
<div class="method-source-code" id="config-source">
|
|
366
|
+
<pre><span class="ruby-comment"># File lib/core/mixin/sub_config.rb, line 28</span>
|
|
367
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">config</span>
|
|
368
|
+
<span class="ruby-keyword">return</span> <span class="ruby-ivar">@config</span>
|
|
369
|
+
<span class="ruby-keyword">end</span></pre>
|
|
370
|
+
</div><!-- config-source -->
|
|
371
|
+
|
|
372
|
+
</div>
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
</div><!-- config-method -->
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
<div id="method-i-config-3D" class="method-detail ">
|
|
381
|
+
|
|
382
|
+
<div class="method-heading">
|
|
383
|
+
<span class="method-name">config=</span><span
|
|
384
|
+
class="method-args">(config)</span>
|
|
385
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
386
|
+
</div>
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
<div class="method-description">
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
<div class="method-source-code" id="config-3D-source">
|
|
396
|
+
<pre><span class="ruby-comment"># File lib/core/mixin/sub_config.rb, line 34</span>
|
|
397
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">config=</span><span class="ruby-identifier">config</span>
|
|
398
|
+
<span class="ruby-ivar">@config</span> = <span class="ruby-identifier">config</span>
|
|
399
|
+
<span class="ruby-keyword">end</span></pre>
|
|
400
|
+
</div><!-- config-3D-source -->
|
|
401
|
+
|
|
402
|
+
</div>
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
</div><!-- config-3D-method -->
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
<div id="method-i-defaults" class="method-detail ">
|
|
411
|
+
|
|
412
|
+
<div class="method-heading">
|
|
413
|
+
<span class="method-name">defaults</span><span
|
|
414
|
+
class="method-args">(defaults, options = {})</span>
|
|
415
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
416
|
+
</div>
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
<div class="method-description">
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
<div class="method-source-code" id="defaults-source">
|
|
426
|
+
<pre><span class="ruby-comment"># File lib/core/mixin/sub_config.rb, line 128</span>
|
|
427
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">defaults</span>(<span class="ruby-identifier">defaults</span>, <span class="ruby-identifier">options</span> = {})
|
|
428
|
+
<span class="ruby-identifier">init_subconfig</span>
|
|
429
|
+
<span class="ruby-identifier">config</span>.<span class="ruby-identifier">defaults</span>(<span class="ruby-identifier">defaults</span>, <span class="ruby-identifier">options</span>)
|
|
430
|
+
<span class="ruby-keyword">end</span></pre>
|
|
431
|
+
</div><!-- defaults-source -->
|
|
432
|
+
|
|
433
|
+
</div>
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
</div><!-- defaults-method -->
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
<div id="method-i-delete" class="method-detail ">
|
|
442
|
+
|
|
443
|
+
<div class="method-heading">
|
|
444
|
+
<span class="method-name">delete</span><span
|
|
445
|
+
class="method-args">(keys, default = nil)</span>
|
|
446
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
447
|
+
</div>
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
<div class="method-description">
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
<div class="method-source-code" id="delete-source">
|
|
457
|
+
<pre><span class="ruby-comment"># File lib/core/mixin/sub_config.rb, line 84</span>
|
|
458
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">keys</span>, <span class="ruby-identifier">default</span> = <span class="ruby-keyword">nil</span>)
|
|
459
|
+
<span class="ruby-identifier">init_subconfig</span>
|
|
460
|
+
<span class="ruby-identifier">config</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">keys</span>, <span class="ruby-identifier">default</span>)
|
|
461
|
+
<span class="ruby-keyword">end</span></pre>
|
|
462
|
+
</div><!-- delete-source -->
|
|
463
|
+
|
|
464
|
+
</div>
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
</div><!-- delete-method -->
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
<div id="method-i-export" class="method-detail ">
|
|
473
|
+
|
|
474
|
+
<div class="method-heading">
|
|
475
|
+
<span class="method-name">export</span><span
|
|
476
|
+
class="method-args">()</span>
|
|
477
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
478
|
+
</div>
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
<div class="method-description">
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
<div class="method-source-code" id="export-source">
|
|
488
|
+
<pre><span class="ruby-comment"># File lib/core/mixin/sub_config.rb, line 142</span>
|
|
489
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">export</span>
|
|
490
|
+
<span class="ruby-identifier">init_subconfig</span>
|
|
491
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">config</span>.<span class="ruby-identifier">export</span>
|
|
492
|
+
<span class="ruby-keyword">end</span></pre>
|
|
493
|
+
</div><!-- export-source -->
|
|
494
|
+
|
|
495
|
+
</div>
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
</div><!-- export-method -->
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
<div id="method-i-get" class="method-detail ">
|
|
504
|
+
|
|
505
|
+
<div class="method-heading">
|
|
506
|
+
<span class="method-name">get</span><span
|
|
507
|
+
class="method-args">(keys, default = nil, format = false)</span>
|
|
508
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
509
|
+
</div>
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
<div class="method-description">
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
<div class="method-source-code" id="get-source">
|
|
519
|
+
<pre><span class="ruby-comment"># File lib/core/mixin/sub_config.rb, line 47</span>
|
|
520
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get</span>(<span class="ruby-identifier">keys</span>, <span class="ruby-identifier">default</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">format</span> = <span class="ruby-keyword">false</span>)
|
|
521
|
+
<span class="ruby-identifier">init_subconfig</span>
|
|
522
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">config</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">keys</span>, <span class="ruby-identifier">default</span>, <span class="ruby-identifier">format</span>)
|
|
523
|
+
<span class="ruby-keyword">end</span></pre>
|
|
524
|
+
</div><!-- get-source -->
|
|
525
|
+
|
|
526
|
+
</div>
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
</div><!-- get-method -->
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
<div id="method-i-import" class="method-detail ">
|
|
535
|
+
|
|
536
|
+
<div class="method-heading">
|
|
537
|
+
<span class="method-name">import</span><span
|
|
538
|
+
class="method-args">(properties, options = {})</span>
|
|
539
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
540
|
+
</div>
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
<div class="method-description">
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
<div class="method-source-code" id="import-source">
|
|
550
|
+
<pre><span class="ruby-comment"># File lib/core/mixin/sub_config.rb, line 113</span>
|
|
551
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">import</span>(<span class="ruby-identifier">properties</span>, <span class="ruby-identifier">options</span> = {})
|
|
552
|
+
<span class="ruby-identifier">init_subconfig</span>
|
|
553
|
+
<span class="ruby-identifier">config</span>.<span class="ruby-identifier">import</span>(<span class="ruby-identifier">properties</span>, <span class="ruby-identifier">options</span>)
|
|
554
|
+
<span class="ruby-keyword">end</span></pre>
|
|
555
|
+
</div><!-- import-source -->
|
|
556
|
+
|
|
557
|
+
</div>
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
</div><!-- import-method -->
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
<div id="method-i-set" class="method-detail ">
|
|
566
|
+
|
|
567
|
+
<div class="method-heading">
|
|
568
|
+
<span class="method-name">set</span><span
|
|
569
|
+
class="method-args">(keys, value = '', delete_nil = false)</span>
|
|
570
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
571
|
+
</div>
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
<div class="method-description">
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
<div class="method-source-code" id="set-source">
|
|
581
|
+
<pre><span class="ruby-comment"># File lib/core/mixin/sub_config.rb, line 68</span>
|
|
582
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">set</span>(<span class="ruby-identifier">keys</span>, <span class="ruby-identifier">value</span> = <span class="ruby-string">''</span>, <span class="ruby-identifier">delete_nil</span> = <span class="ruby-keyword">false</span>)
|
|
583
|
+
<span class="ruby-identifier">init_subconfig</span>
|
|
584
|
+
<span class="ruby-identifier">config</span>.<span class="ruby-identifier">set</span>(<span class="ruby-identifier">keys</span>, <span class="ruby-identifier">value</span>, <span class="ruby-identifier">delete_nil</span>)
|
|
585
|
+
<span class="ruby-keyword">end</span></pre>
|
|
586
|
+
</div><!-- set-source -->
|
|
587
|
+
|
|
588
|
+
</div>
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
</div><!-- set-method -->
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
</section><!-- public-instance-method-details -->
|
|
597
|
+
|
|
598
|
+
<section id="protected-instance-5Buntitled-5D-method-details" class="method-section section">
|
|
599
|
+
<h3 class="section-header">Protected Instance Methods</h3>
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
<div id="method-i-_clear" class="method-detail ">
|
|
603
|
+
|
|
604
|
+
<div class="method-heading">
|
|
605
|
+
<span class="method-name">_clear</span><span
|
|
606
|
+
class="method-args">()</span>
|
|
607
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
608
|
+
</div>
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
<div class="method-description">
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
<div class="method-source-code" id="_clear-source">
|
|
618
|
+
<pre><span class="ruby-comment"># File lib/core/mixin/sub_config.rb, line 91</span>
|
|
619
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">_clear</span>
|
|
620
|
+
<span class="ruby-ivar">@properties</span> = {}
|
|
621
|
+
<span class="ruby-keyword">end</span></pre>
|
|
622
|
+
</div><!-- _clear-source -->
|
|
623
|
+
|
|
624
|
+
</div>
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
</div><!-- _clear-method -->
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
<div id="method-i-_defaults" class="method-detail ">
|
|
633
|
+
|
|
634
|
+
<div class="method-heading">
|
|
635
|
+
<span class="method-name">_defaults</span><span
|
|
636
|
+
class="method-args">(defaults, options = {})</span>
|
|
637
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
638
|
+
</div>
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
<div class="method-description">
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
<div class="method-source-code" id="_defaults-source">
|
|
648
|
+
<pre><span class="ruby-comment"># File lib/core/mixin/sub_config.rb, line 120</span>
|
|
649
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">_defaults</span>(<span class="ruby-identifier">defaults</span>, <span class="ruby-identifier">options</span> = {})
|
|
650
|
+
<span class="ruby-identifier">config</span> = <span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>).<span class="ruby-identifier">set</span>(<span class="ruby-value">:import_type</span>, <span class="ruby-value">:default</span>)
|
|
651
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">import_base</span>(<span class="ruby-identifier">defaults</span>, <span class="ruby-identifier">config</span>)
|
|
652
|
+
<span class="ruby-keyword">end</span></pre>
|
|
653
|
+
</div><!-- _defaults-source -->
|
|
654
|
+
|
|
655
|
+
</div>
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
</div><!-- _defaults-method -->
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
<div id="method-i-_delete" class="method-detail ">
|
|
664
|
+
|
|
665
|
+
<div class="method-heading">
|
|
666
|
+
<span class="method-name">_delete</span><span
|
|
667
|
+
class="method-args">(keys, default = nil)</span>
|
|
668
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
669
|
+
</div>
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
<div class="method-description">
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
<div class="method-source-code" id="_delete-source">
|
|
679
|
+
<pre><span class="ruby-comment"># File lib/core/mixin/sub_config.rb, line 75</span>
|
|
680
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">_delete</span>(<span class="ruby-identifier">keys</span>, <span class="ruby-identifier">default</span> = <span class="ruby-keyword">nil</span>)
|
|
681
|
+
<span class="ruby-identifier">existing</span> = <span class="ruby-identifier">modify</span>(<span class="ruby-ivar">@properties</span>, <span class="ruby-identifier">array</span>(<span class="ruby-identifier">keys</span>).<span class="ruby-identifier">flatten</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-keyword">true</span>)
|
|
682
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">existing</span>[<span class="ruby-value">:value</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">existing</span>[<span class="ruby-value">:value</span>]
|
|
683
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">default</span>
|
|
684
|
+
<span class="ruby-keyword">end</span></pre>
|
|
685
|
+
</div><!-- _delete-source -->
|
|
686
|
+
|
|
687
|
+
</div>
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
</div><!-- _delete-method -->
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
<div id="method-i-_export" class="method-detail ">
|
|
696
|
+
|
|
697
|
+
<div class="method-heading">
|
|
698
|
+
<span class="method-name">_export</span><span
|
|
699
|
+
class="method-args">()</span>
|
|
700
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
701
|
+
</div>
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
<div class="method-description">
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
<div class="method-source-code" id="_export-source">
|
|
711
|
+
<pre><span class="ruby-comment"># File lib/core/mixin/sub_config.rb, line 135</span>
|
|
712
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">_export</span>
|
|
713
|
+
<span class="ruby-keyword">return</span> <span class="ruby-ivar">@properties</span>
|
|
714
|
+
<span class="ruby-keyword">end</span></pre>
|
|
715
|
+
</div><!-- _export-source -->
|
|
716
|
+
|
|
717
|
+
</div>
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
</div><!-- _export-method -->
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
<div id="method-i-_get" class="method-detail ">
|
|
726
|
+
|
|
727
|
+
<div class="method-heading">
|
|
728
|
+
<span class="method-name">_get</span><span
|
|
729
|
+
class="method-args">(keys, default = nil, format = false)</span>
|
|
730
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
731
|
+
</div>
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+
<div class="method-description">
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
<div class="method-source-code" id="_get-source">
|
|
741
|
+
<pre><span class="ruby-comment"># File lib/core/mixin/sub_config.rb, line 40</span>
|
|
742
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">_get</span>(<span class="ruby-identifier">keys</span>, <span class="ruby-identifier">default</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">format</span> = <span class="ruby-keyword">false</span>)
|
|
743
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">fetch</span>(<span class="ruby-ivar">@properties</span>, <span class="ruby-identifier">array</span>(<span class="ruby-identifier">keys</span>).<span class="ruby-identifier">flatten</span>, <span class="ruby-identifier">default</span>, <span class="ruby-identifier">format</span>)
|
|
744
|
+
<span class="ruby-keyword">end</span></pre>
|
|
745
|
+
</div><!-- _get-source -->
|
|
746
|
+
|
|
747
|
+
</div>
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
</div><!-- _get-method -->
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
<div id="method-i-_import" class="method-detail ">
|
|
756
|
+
|
|
757
|
+
<div class="method-heading">
|
|
758
|
+
<span class="method-name">_import</span><span
|
|
759
|
+
class="method-args">(properties, options = {})</span>
|
|
760
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
761
|
+
</div>
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
<div class="method-description">
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
<div class="method-source-code" id="_import-source">
|
|
771
|
+
<pre><span class="ruby-comment"># File lib/core/mixin/sub_config.rb, line 106</span>
|
|
772
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">_import</span>(<span class="ruby-identifier">properties</span>, <span class="ruby-identifier">options</span> = {})
|
|
773
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">import_base</span>(<span class="ruby-identifier">properties</span>, <span class="ruby-identifier">options</span>)
|
|
774
|
+
<span class="ruby-keyword">end</span></pre>
|
|
775
|
+
</div><!-- _import-source -->
|
|
776
|
+
|
|
777
|
+
</div>
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
</div><!-- _import-method -->
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
<div id="method-i-_init" class="method-detail ">
|
|
786
|
+
|
|
787
|
+
<div class="method-heading">
|
|
788
|
+
<span class="method-name">_init</span><span
|
|
789
|
+
class="method-args">(keys, default = nil)</span>
|
|
790
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
791
|
+
</div>
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
<div class="method-description">
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
<div class="method-source-code" id="_init-source">
|
|
801
|
+
<pre><span class="ruby-comment"># File lib/core/mixin/sub_config.rb, line 54</span>
|
|
802
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">_init</span>(<span class="ruby-identifier">keys</span>, <span class="ruby-identifier">default</span> = <span class="ruby-keyword">nil</span>)
|
|
803
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">_set</span>(<span class="ruby-identifier">keys</span>, <span class="ruby-identifier">_get</span>(<span class="ruby-identifier">keys</span>, <span class="ruby-identifier">default</span>))
|
|
804
|
+
<span class="ruby-keyword">end</span></pre>
|
|
805
|
+
</div><!-- _init-source -->
|
|
806
|
+
|
|
807
|
+
</div>
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
</div><!-- _init-method -->
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
<div id="method-i-_set" class="method-detail ">
|
|
816
|
+
|
|
817
|
+
<div class="method-heading">
|
|
818
|
+
<span class="method-name">_set</span><span
|
|
819
|
+
class="method-args">(keys, value = '', delete_nil = false)</span>
|
|
820
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
821
|
+
</div>
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
<div class="method-description">
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
<div class="method-source-code" id="_set-source">
|
|
831
|
+
<pre><span class="ruby-comment"># File lib/core/mixin/sub_config.rb, line 61</span>
|
|
832
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">_set</span>(<span class="ruby-identifier">keys</span>, <span class="ruby-identifier">value</span> = <span class="ruby-string">''</span>, <span class="ruby-identifier">delete_nil</span> = <span class="ruby-keyword">false</span>)
|
|
833
|
+
<span class="ruby-identifier">modify</span>(<span class="ruby-ivar">@properties</span>, <span class="ruby-identifier">array</span>(<span class="ruby-identifier">keys</span>).<span class="ruby-identifier">flatten</span>, <span class="ruby-identifier">value</span>, <span class="ruby-identifier">delete_nil</span>)
|
|
834
|
+
<span class="ruby-keyword">end</span></pre>
|
|
835
|
+
</div><!-- _set-source -->
|
|
836
|
+
|
|
837
|
+
</div>
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
</div><!-- _set-method -->
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
<div id="method-i-init_subconfig" class="method-detail ">
|
|
846
|
+
|
|
847
|
+
<div class="method-heading">
|
|
848
|
+
<span class="method-name">init_subconfig</span><span
|
|
849
|
+
class="method-args">(reset = false)</span>
|
|
850
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
851
|
+
</div>
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
<div class="method-description">
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
<div class="method-source-code" id="init_subconfig-source">
|
|
861
|
+
<pre><span class="ruby-comment"># File lib/core/mixin/sub_config.rb, line 14</span>
|
|
862
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">init_subconfig</span>(<span class="ruby-identifier">reset</span> = <span class="ruby-keyword">false</span>)
|
|
863
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@subconfig_initialized</span> <span class="ruby-operator">&&</span> <span class="ruby-operator">!</span> <span class="ruby-identifier">reset</span>
|
|
864
|
+
|
|
865
|
+
<span class="ruby-keyword">unless</span> <span class="ruby-ivar">@config</span>
|
|
866
|
+
<span class="ruby-ivar">@config</span> = <span class="ruby-constant">Config</span>.<span class="ruby-identifier">new</span>
|
|
867
|
+
<span class="ruby-keyword">end</span>
|
|
868
|
+
|
|
869
|
+
<span class="ruby-ivar">@subconfig_initialized</span> = <span class="ruby-keyword">true</span>
|
|
870
|
+
<span class="ruby-keyword">end</span></pre>
|
|
871
|
+
</div><!-- init_subconfig-source -->
|
|
872
|
+
|
|
873
|
+
</div>
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
|
|
878
|
+
</div><!-- init_subconfig-method -->
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
</section><!-- protected-instance-method-details -->
|
|
882
|
+
|
|
883
|
+
</section><!-- 5Buntitled-5D -->
|
|
884
|
+
|
|
885
|
+
</div><!-- documentation -->
|
|
886
|
+
|
|
887
|
+
|
|
888
|
+
<footer id="validator-badges">
|
|
889
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
|
890
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
|
|
891
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
|
892
|
+
</footer>
|
|
893
|
+
|