nucleon 0.2.0 → 0.2.1

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