nucleon 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/Gemfile.lock +2 -0
- data/VERSION +1 -1
- data/lib/core/config.rb +21 -20
- data/lib/core/environment.rb +2 -2
- data/lib/core/facade.rb +15 -0
- data/lib/core/mixin/action/registration.rb +84 -0
- data/lib/core/mixin/sub_config.rb +5 -5
- data/lib/core/plugin/action.rb +66 -10
- data/lib/core/plugin/base.rb +100 -19
- data/lib/core/plugin/command.rb +4 -0
- data/lib/core/util/cache.rb +13 -1
- data/lib/core/util/cli.rb +77 -11
- data/lib/core/util/console.rb +55 -72
- data/lib/core/util/data.rb +19 -9
- data/lib/core/util/logger.rb +16 -6
- data/lib/core/util/shell.rb +3 -1
- data/lib/core/util/ssh.rb +28 -25
- data/lib/nucleon/translator/JSON.rb +2 -2
- data/lib/nucleon/translator/YAML.rb +2 -2
- data/lib/nucleon_base.rb +22 -8
- data/nucleon.gemspec +122 -2
- data/rdoc/site/0.2.0/ARCHITECTURE_rdoc.html +638 -0
- data/rdoc/site/0.2.0/Hash.html +351 -0
- data/rdoc/site/0.2.0/Kernel.html +416 -0
- data/rdoc/site/0.2.0/Nucleon.html +607 -0
- data/rdoc/site/0.2.0/Nucleon/Action.html +284 -0
- data/rdoc/site/0.2.0/Nucleon/Action/Extract.html +455 -0
- data/rdoc/site/0.2.0/Nucleon/Action/Project.html +283 -0
- data/rdoc/site/0.2.0/Nucleon/Action/Project/Add.html +500 -0
- data/rdoc/site/0.2.0/Nucleon/Action/Project/Create.html +457 -0
- data/rdoc/site/0.2.0/Nucleon/Action/Project/Remove.html +503 -0
- data/rdoc/site/0.2.0/Nucleon/Action/Project/Save.html +476 -0
- data/rdoc/site/0.2.0/Nucleon/Action/Project/Update.html +423 -0
- data/rdoc/site/0.2.0/Nucleon/Codes.html +567 -0
- data/rdoc/site/0.2.0/Nucleon/Command.html +279 -0
- data/rdoc/site/0.2.0/Nucleon/Command/Bash.html +548 -0
- data/rdoc/site/0.2.0/Nucleon/Config.html +1631 -0
- data/rdoc/site/0.2.0/Nucleon/Config/Collection.html +513 -0
- data/rdoc/site/0.2.0/Nucleon/Config/Options.html +493 -0
- data/rdoc/site/0.2.0/Nucleon/Core.html +639 -0
- data/rdoc/site/0.2.0/Nucleon/Environment.html +1208 -0
- data/rdoc/site/0.2.0/Nucleon/Errors.html +279 -0
- data/rdoc/site/0.2.0/Nucleon/Errors/BatchError.html +285 -0
- data/rdoc/site/0.2.0/Nucleon/Errors/NucleonError.html +661 -0
- data/rdoc/site/0.2.0/Nucleon/Errors/SSHUnavailable.html +285 -0
- data/rdoc/site/0.2.0/Nucleon/Event.html +279 -0
- data/rdoc/site/0.2.0/Nucleon/Event/Regex.html +471 -0
- data/rdoc/site/0.2.0/Nucleon/Facade.html +2409 -0
- data/rdoc/site/0.2.0/Nucleon/Gems.html +639 -0
- data/rdoc/site/0.2.0/Nucleon/Manager.html +1860 -0
- data/rdoc/site/0.2.0/Nucleon/Mixin.html +288 -0
- data/rdoc/site/0.2.0/Nucleon/Mixin/Action.html +281 -0
- data/rdoc/site/0.2.0/Nucleon/Mixin/Action/Commit.html +385 -0
- data/rdoc/site/0.2.0/Nucleon/Mixin/Action/Project.html +399 -0
- data/rdoc/site/0.2.0/Nucleon/Mixin/Action/Push.html +375 -0
- data/rdoc/site/0.2.0/Nucleon/Mixin/Colors.html +549 -0
- data/rdoc/site/0.2.0/Nucleon/Mixin/ConfigCollection.html +485 -0
- data/rdoc/site/0.2.0/Nucleon/Mixin/ConfigOptions.html +453 -0
- data/rdoc/site/0.2.0/Nucleon/Mixin/Macro.html +280 -0
- data/rdoc/site/0.2.0/Nucleon/Mixin/Macro/ObjectInterface.html +699 -0
- data/rdoc/site/0.2.0/Nucleon/Mixin/Macro/PluginInterface.html +686 -0
- data/rdoc/site/0.2.0/Nucleon/Mixin/Settings.html +485 -0
- data/rdoc/site/0.2.0/Nucleon/Mixin/SubConfig.html +891 -0
- data/rdoc/site/0.2.0/Nucleon/Parallel.html +330 -0
- data/rdoc/site/0.2.0/Nucleon/Parallel/ClassMethods.html +329 -0
- data/rdoc/site/0.2.0/Nucleon/Parallel/InstanceMethods.html +456 -0
- data/rdoc/site/0.2.0/Nucleon/Plugin.html +286 -0
- data/rdoc/site/0.2.0/Nucleon/Plugin/Action.html +1829 -0
- data/rdoc/site/0.2.0/Nucleon/Plugin/Action/Option.html +463 -0
- data/rdoc/site/0.2.0/Nucleon/Plugin/Base.html +1803 -0
- data/rdoc/site/0.2.0/Nucleon/Plugin/Command.html +725 -0
- data/rdoc/site/0.2.0/Nucleon/Plugin/Event.html +446 -0
- data/rdoc/site/0.2.0/Nucleon/Plugin/Extension.html +285 -0
- data/rdoc/site/0.2.0/Nucleon/Plugin/Project.html +2898 -0
- data/rdoc/site/0.2.0/Nucleon/Plugin/Template.html +480 -0
- data/rdoc/site/0.2.0/Nucleon/Plugin/Translator.html +375 -0
- data/rdoc/site/0.2.0/Nucleon/Project.html +280 -0
- data/rdoc/site/0.2.0/Nucleon/Project/Git.html +1805 -0
- data/rdoc/site/0.2.0/Nucleon/Project/Github.html +553 -0
- data/rdoc/site/0.2.0/Nucleon/Template.html +281 -0
- data/rdoc/site/0.2.0/Nucleon/Template/JSON.html +333 -0
- data/rdoc/site/0.2.0/Nucleon/Template/Wrapper.html +333 -0
- data/rdoc/site/0.2.0/Nucleon/Template/YAML.html +333 -0
- data/rdoc/site/0.2.0/Nucleon/Translator.html +280 -0
- data/rdoc/site/0.2.0/Nucleon/Translator/JSON.html +370 -0
- data/rdoc/site/0.2.0/Nucleon/Translator/YAML.html +370 -0
- data/rdoc/site/0.2.0/Nucleon/Util.html +289 -0
- data/rdoc/site/0.2.0/Nucleon/Util/CLI.html +392 -0
- data/rdoc/site/0.2.0/Nucleon/Util/CLI/Parser.html +1250 -0
- data/rdoc/site/0.2.0/Nucleon/Util/Cache.html +784 -0
- data/rdoc/site/0.2.0/Nucleon/Util/Console.html +1318 -0
- data/rdoc/site/0.2.0/Nucleon/Util/Data.html +1411 -0
- data/rdoc/site/0.2.0/Nucleon/Util/Disk.html +526 -0
- data/rdoc/site/0.2.0/Nucleon/Util/Git.html +365 -0
- data/rdoc/site/0.2.0/Nucleon/Util/Liquid.html +369 -0
- data/rdoc/site/0.2.0/Nucleon/Util/Logger.html +810 -0
- data/rdoc/site/0.2.0/Nucleon/Util/Package.html +562 -0
- data/rdoc/site/0.2.0/Nucleon/Util/SSH.html +1033 -0
- data/rdoc/site/0.2.0/Nucleon/Util/SSH/Keypair.html +605 -0
- data/rdoc/site/0.2.0/Nucleon/Util/Shell.html +693 -0
- data/rdoc/site/0.2.0/Nucleon/Util/Shell/Result.html +501 -0
- data/rdoc/site/0.2.0/README_rdoc.html +316 -0
- data/rdoc/site/0.2.0/TODO_rdoc.html +265 -0
- data/rdoc/site/0.2.0/created.rid +61 -0
- data/rdoc/site/0.2.0/images/add.png +0 -0
- data/rdoc/site/0.2.0/images/brick.png +0 -0
- data/rdoc/site/0.2.0/images/brick_link.png +0 -0
- data/rdoc/site/0.2.0/images/bug.png +0 -0
- data/rdoc/site/0.2.0/images/bullet_black.png +0 -0
- data/rdoc/site/0.2.0/images/bullet_toggle_minus.png +0 -0
- data/rdoc/site/0.2.0/images/bullet_toggle_plus.png +0 -0
- data/rdoc/site/0.2.0/images/date.png +0 -0
- data/rdoc/site/0.2.0/images/delete.png +0 -0
- data/rdoc/site/0.2.0/images/find.png +0 -0
- data/rdoc/site/0.2.0/images/loadingAnimation.gif +0 -0
- data/rdoc/site/0.2.0/images/macFFBgHack.png +0 -0
- data/rdoc/site/0.2.0/images/package.png +0 -0
- data/rdoc/site/0.2.0/images/page_green.png +0 -0
- data/rdoc/site/0.2.0/images/page_white_text.png +0 -0
- data/rdoc/site/0.2.0/images/page_white_width.png +0 -0
- data/rdoc/site/0.2.0/images/plugin.png +0 -0
- data/rdoc/site/0.2.0/images/ruby.png +0 -0
- data/rdoc/site/0.2.0/images/tag_blue.png +0 -0
- data/rdoc/site/0.2.0/images/tag_green.png +0 -0
- data/rdoc/site/0.2.0/images/transparent.png +0 -0
- data/rdoc/site/0.2.0/images/wrench.png +0 -0
- data/rdoc/site/0.2.0/images/wrench_orange.png +0 -0
- data/rdoc/site/0.2.0/images/zoom.png +0 -0
- data/rdoc/site/0.2.0/index.html +315 -0
- data/rdoc/site/0.2.0/js/darkfish.js +155 -0
- data/rdoc/site/0.2.0/js/jquery.js +18 -0
- data/rdoc/site/0.2.0/js/navigation.js +142 -0
- data/rdoc/site/0.2.0/js/search.js +94 -0
- data/rdoc/site/0.2.0/js/search_index.js +1 -0
- data/rdoc/site/0.2.0/js/searcher.js +228 -0
- data/rdoc/site/0.2.0/rdoc.css +543 -0
- data/rdoc/site/0.2.0/table_of_contents.html +1657 -0
- data/spec/core/util/console_spec.rb +50 -18
- metadata +133 -2
@@ -0,0 +1,351 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class Hash - 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="class">
|
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/mod/hash.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
<nav id="parent-class-section" class="section">
|
60
|
+
<h3 class="section-header">Parent</h3>
|
61
|
+
|
62
|
+
<p class="link">Object
|
63
|
+
|
64
|
+
</nav>
|
65
|
+
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<nav id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
70
|
+
|
71
|
+
<ul class="link-list">
|
72
|
+
|
73
|
+
<li><a href="#method-i-search">#search</a>
|
74
|
+
|
75
|
+
</ul>
|
76
|
+
</nav>
|
77
|
+
|
78
|
+
</div>
|
79
|
+
|
80
|
+
<div id="project-metadata">
|
81
|
+
<nav id="fileindex-section" class="section project-section">
|
82
|
+
<h3 class="section-header">Pages</h3>
|
83
|
+
|
84
|
+
<ul>
|
85
|
+
|
86
|
+
<li class="file"><a href="./ARCHITECTURE_rdoc.html">ARCHITECTURE</a>
|
87
|
+
|
88
|
+
<li class="file"><a href="./README_rdoc.html">README</a>
|
89
|
+
|
90
|
+
<li class="file"><a href="./TODO_rdoc.html">TODO</a>
|
91
|
+
|
92
|
+
</ul>
|
93
|
+
</nav>
|
94
|
+
|
95
|
+
<nav id="classindex-section" class="section project-section">
|
96
|
+
<h3 class="section-header">Class and Module Index</h3>
|
97
|
+
|
98
|
+
<ul class="link-list">
|
99
|
+
|
100
|
+
<li><a href="./Nucleon.html">Nucleon</a>
|
101
|
+
|
102
|
+
<li><a href="./Nucleon/Action.html">Nucleon::Action</a>
|
103
|
+
|
104
|
+
<li><a href="./Nucleon/Action/Extract.html">Nucleon::Action::Extract</a>
|
105
|
+
|
106
|
+
<li><a href="./Nucleon/Action/Project.html">Nucleon::Action::Project</a>
|
107
|
+
|
108
|
+
<li><a href="./Nucleon/Action/Project/Add.html">Nucleon::Action::Project::Add</a>
|
109
|
+
|
110
|
+
<li><a href="./Nucleon/Action/Project/Create.html">Nucleon::Action::Project::Create</a>
|
111
|
+
|
112
|
+
<li><a href="./Nucleon/Action/Project/Remove.html">Nucleon::Action::Project::Remove</a>
|
113
|
+
|
114
|
+
<li><a href="./Nucleon/Action/Project/Save.html">Nucleon::Action::Project::Save</a>
|
115
|
+
|
116
|
+
<li><a href="./Nucleon/Action/Project/Update.html">Nucleon::Action::Project::Update</a>
|
117
|
+
|
118
|
+
<li><a href="./Nucleon/Codes.html">Nucleon::Codes</a>
|
119
|
+
|
120
|
+
<li><a href="./Nucleon/Command.html">Nucleon::Command</a>
|
121
|
+
|
122
|
+
<li><a href="./Nucleon/Command/Bash.html">Nucleon::Command::Bash</a>
|
123
|
+
|
124
|
+
<li><a href="./Nucleon/Config.html">Nucleon::Config</a>
|
125
|
+
|
126
|
+
<li><a href="./Nucleon/Config/Collection.html">Nucleon::Config::Collection</a>
|
127
|
+
|
128
|
+
<li><a href="./Nucleon/Config/Options.html">Nucleon::Config::Options</a>
|
129
|
+
|
130
|
+
<li><a href="./Nucleon/Core.html">Nucleon::Core</a>
|
131
|
+
|
132
|
+
<li><a href="./Nucleon/Environment.html">Nucleon::Environment</a>
|
133
|
+
|
134
|
+
<li><a href="./Nucleon/Errors.html">Nucleon::Errors</a>
|
135
|
+
|
136
|
+
<li><a href="./Nucleon/Errors/BatchError.html">Nucleon::Errors::BatchError</a>
|
137
|
+
|
138
|
+
<li><a href="./Nucleon/Errors/NucleonError.html">Nucleon::Errors::NucleonError</a>
|
139
|
+
|
140
|
+
<li><a href="./Nucleon/Errors/SSHUnavailable.html">Nucleon::Errors::SSHUnavailable</a>
|
141
|
+
|
142
|
+
<li><a href="./Nucleon/Event.html">Nucleon::Event</a>
|
143
|
+
|
144
|
+
<li><a href="./Nucleon/Event/Regex.html">Nucleon::Event::Regex</a>
|
145
|
+
|
146
|
+
<li><a href="./Nucleon/Facade.html">Nucleon::Facade</a>
|
147
|
+
|
148
|
+
<li><a href="./Nucleon/Gems.html">Nucleon::Gems</a>
|
149
|
+
|
150
|
+
<li><a href="./Nucleon/Manager.html">Nucleon::Manager</a>
|
151
|
+
|
152
|
+
<li><a href="./Nucleon/Mixin.html">Nucleon::Mixin</a>
|
153
|
+
|
154
|
+
<li><a href="./Nucleon/Mixin/Action.html">Nucleon::Mixin::Action</a>
|
155
|
+
|
156
|
+
<li><a href="./Nucleon/Mixin/Action/Commit.html">Nucleon::Mixin::Action::Commit</a>
|
157
|
+
|
158
|
+
<li><a href="./Nucleon/Mixin/Action/Project.html">Nucleon::Mixin::Action::Project</a>
|
159
|
+
|
160
|
+
<li><a href="./Nucleon/Mixin/Action/Push.html">Nucleon::Mixin::Action::Push</a>
|
161
|
+
|
162
|
+
<li><a href="./Nucleon/Mixin/Colors.html">Nucleon::Mixin::Colors</a>
|
163
|
+
|
164
|
+
<li><a href="./Nucleon/Mixin/ConfigCollection.html">Nucleon::Mixin::ConfigCollection</a>
|
165
|
+
|
166
|
+
<li><a href="./Nucleon/Mixin/ConfigOptions.html">Nucleon::Mixin::ConfigOptions</a>
|
167
|
+
|
168
|
+
<li><a href="./Nucleon/Mixin/Macro.html">Nucleon::Mixin::Macro</a>
|
169
|
+
|
170
|
+
<li><a href="./Nucleon/Mixin/Macro/ObjectInterface.html">Nucleon::Mixin::Macro::ObjectInterface</a>
|
171
|
+
|
172
|
+
<li><a href="./Nucleon/Mixin/Macro/PluginInterface.html">Nucleon::Mixin::Macro::PluginInterface</a>
|
173
|
+
|
174
|
+
<li><a href="./Nucleon/Mixin/Settings.html">Nucleon::Mixin::Settings</a>
|
175
|
+
|
176
|
+
<li><a href="./Nucleon/Mixin/SubConfig.html">Nucleon::Mixin::SubConfig</a>
|
177
|
+
|
178
|
+
<li><a href="./Nucleon/Parallel.html">Nucleon::Parallel</a>
|
179
|
+
|
180
|
+
<li><a href="./Nucleon/Parallel/ClassMethods.html">Nucleon::Parallel::ClassMethods</a>
|
181
|
+
|
182
|
+
<li><a href="./Nucleon/Parallel/InstanceMethods.html">Nucleon::Parallel::InstanceMethods</a>
|
183
|
+
|
184
|
+
<li><a href="./Nucleon/Plugin.html">Nucleon::Plugin</a>
|
185
|
+
|
186
|
+
<li><a href="./Nucleon/Plugin/Action.html">Nucleon::Plugin::Action</a>
|
187
|
+
|
188
|
+
<li><a href="./Nucleon/Plugin/Action/Option.html">Nucleon::Plugin::Action::Option</a>
|
189
|
+
|
190
|
+
<li><a href="./Nucleon/Plugin/Base.html">Nucleon::Plugin::Base</a>
|
191
|
+
|
192
|
+
<li><a href="./Nucleon/Plugin/Command.html">Nucleon::Plugin::Command</a>
|
193
|
+
|
194
|
+
<li><a href="./Nucleon/Plugin/Event.html">Nucleon::Plugin::Event</a>
|
195
|
+
|
196
|
+
<li><a href="./Nucleon/Plugin/Extension.html">Nucleon::Plugin::Extension</a>
|
197
|
+
|
198
|
+
<li><a href="./Nucleon/Plugin/Project.html">Nucleon::Plugin::Project</a>
|
199
|
+
|
200
|
+
<li><a href="./Nucleon/Plugin/Template.html">Nucleon::Plugin::Template</a>
|
201
|
+
|
202
|
+
<li><a href="./Nucleon/Plugin/Translator.html">Nucleon::Plugin::Translator</a>
|
203
|
+
|
204
|
+
<li><a href="./Nucleon/Project.html">Nucleon::Project</a>
|
205
|
+
|
206
|
+
<li><a href="./Nucleon/Project/Git.html">Nucleon::Project::Git</a>
|
207
|
+
|
208
|
+
<li><a href="./Nucleon/Project/Github.html">Nucleon::Project::Github</a>
|
209
|
+
|
210
|
+
<li><a href="./Nucleon/Template.html">Nucleon::Template</a>
|
211
|
+
|
212
|
+
<li><a href="./Nucleon/Template/JSON.html">Nucleon::Template::JSON</a>
|
213
|
+
|
214
|
+
<li><a href="./Nucleon/Template/Wrapper.html">Nucleon::Template::Wrapper</a>
|
215
|
+
|
216
|
+
<li><a href="./Nucleon/Template/YAML.html">Nucleon::Template::YAML</a>
|
217
|
+
|
218
|
+
<li><a href="./Nucleon/Translator.html">Nucleon::Translator</a>
|
219
|
+
|
220
|
+
<li><a href="./Nucleon/Translator/JSON.html">Nucleon::Translator::JSON</a>
|
221
|
+
|
222
|
+
<li><a href="./Nucleon/Translator/YAML.html">Nucleon::Translator::YAML</a>
|
223
|
+
|
224
|
+
<li><a href="./Nucleon/Util.html">Nucleon::Util</a>
|
225
|
+
|
226
|
+
<li><a href="./Nucleon/Util/CLI.html">Nucleon::Util::CLI</a>
|
227
|
+
|
228
|
+
<li><a href="./Nucleon/Util/CLI/Parser.html">Nucleon::Util::CLI::Parser</a>
|
229
|
+
|
230
|
+
<li><a href="./Nucleon/Util/Cache.html">Nucleon::Util::Cache</a>
|
231
|
+
|
232
|
+
<li><a href="./Nucleon/Util/Console.html">Nucleon::Util::Console</a>
|
233
|
+
|
234
|
+
<li><a href="./Nucleon/Util/Data.html">Nucleon::Util::Data</a>
|
235
|
+
|
236
|
+
<li><a href="./Nucleon/Util/Disk.html">Nucleon::Util::Disk</a>
|
237
|
+
|
238
|
+
<li><a href="./Nucleon/Util/Git.html">Nucleon::Util::Git</a>
|
239
|
+
|
240
|
+
<li><a href="./Nucleon/Util/Liquid.html">Nucleon::Util::Liquid</a>
|
241
|
+
|
242
|
+
<li><a href="./Nucleon/Util/Logger.html">Nucleon::Util::Logger</a>
|
243
|
+
|
244
|
+
<li><a href="./Nucleon/Util/Package.html">Nucleon::Util::Package</a>
|
245
|
+
|
246
|
+
<li><a href="./Nucleon/Util/SSH.html">Nucleon::Util::SSH</a>
|
247
|
+
|
248
|
+
<li><a href="./Nucleon/Util/SSH/Keypair.html">Nucleon::Util::SSH::Keypair</a>
|
249
|
+
|
250
|
+
<li><a href="./Nucleon/Util/Shell.html">Nucleon::Util::Shell</a>
|
251
|
+
|
252
|
+
<li><a href="./Nucleon/Util/Shell/Result.html">Nucleon::Util::Shell::Result</a>
|
253
|
+
|
254
|
+
<li><a href="./Hash.html">Hash</a>
|
255
|
+
|
256
|
+
<li><a href="./Kernel.html">Kernel</a>
|
257
|
+
|
258
|
+
</ul>
|
259
|
+
</nav>
|
260
|
+
|
261
|
+
</div>
|
262
|
+
</nav>
|
263
|
+
|
264
|
+
<div id="documentation">
|
265
|
+
<h1 class="class">class Hash</h1>
|
266
|
+
|
267
|
+
<div id="description" class="description">
|
268
|
+
|
269
|
+
</div><!-- description -->
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
<!-- Methods -->
|
284
|
+
|
285
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
286
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
287
|
+
|
288
|
+
|
289
|
+
<div id="method-i-search" class="method-detail ">
|
290
|
+
|
291
|
+
<div class="method-heading">
|
292
|
+
<span class="method-name">search</span><span
|
293
|
+
class="method-args">(search_key, options = {})</span>
|
294
|
+
<span class="method-click-advice">click to toggle source</span>
|
295
|
+
</div>
|
296
|
+
|
297
|
+
|
298
|
+
<div class="method-description">
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
<div class="method-source-code" id="search-source">
|
305
|
+
<pre><span class="ruby-comment"># File lib/core/mod/hash.rb, line 6</span>
|
306
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">search</span>(<span class="ruby-identifier">search_key</span>, <span class="ruby-identifier">options</span> = {})
|
307
|
+
<span class="ruby-identifier">config</span> = <span class="ruby-constant">Nucleon</span><span class="ruby-operator">::</span><span class="ruby-constant">Config</span>.<span class="ruby-identifier">ensure</span>(<span class="ruby-identifier">options</span>)
|
308
|
+
<span class="ruby-identifier">value</span> = <span class="ruby-keyword">nil</span>
|
309
|
+
|
310
|
+
<span class="ruby-identifier">recurse</span> = <span class="ruby-identifier">config</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value">:recurse</span>, <span class="ruby-keyword">false</span>)
|
311
|
+
<span class="ruby-identifier">recurse_level</span> = <span class="ruby-identifier">config</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value">:recurse_level</span>, <span class="ruby-value">-1</span>)
|
312
|
+
|
313
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">data</span><span class="ruby-operator">|</span>
|
314
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">key</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">search_key</span>
|
315
|
+
<span class="ruby-identifier">value</span> = <span class="ruby-identifier">data</span>
|
316
|
+
|
317
|
+
<span class="ruby-keyword">elsif</span> <span class="ruby-identifier">data</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>) <span class="ruby-operator">&&</span>
|
318
|
+
<span class="ruby-identifier">recurse</span> <span class="ruby-operator">&&</span> (<span class="ruby-identifier">recurse_level</span> <span class="ruby-operator">==</span> <span class="ruby-value">-1</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">recurse_level</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>)
|
319
|
+
|
320
|
+
<span class="ruby-identifier">recurse_level</span> <span class="ruby-operator">-=</span> <span class="ruby-value">1</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">recurse_level</span> <span class="ruby-operator">==</span> <span class="ruby-value">-1</span>
|
321
|
+
<span class="ruby-identifier">value</span> = <span class="ruby-identifier">value</span>.<span class="ruby-identifier">search</span>(<span class="ruby-identifier">search_key</span>,
|
322
|
+
<span class="ruby-constant">Nucleon</span><span class="ruby-operator">::</span><span class="ruby-constant">Config</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">config</span>).<span class="ruby-identifier">set</span>(<span class="ruby-value">:recurse_level</span>, <span class="ruby-identifier">recurse_level</span>)
|
323
|
+
)
|
324
|
+
<span class="ruby-keyword">end</span>
|
325
|
+
<span class="ruby-keyword">break</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span>
|
326
|
+
<span class="ruby-keyword">end</span>
|
327
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">value</span>
|
328
|
+
<span class="ruby-keyword">end</span></pre>
|
329
|
+
</div><!-- search-source -->
|
330
|
+
|
331
|
+
</div>
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
</div><!-- search-method -->
|
337
|
+
|
338
|
+
|
339
|
+
</section><!-- public-instance-method-details -->
|
340
|
+
|
341
|
+
</section><!-- 5Buntitled-5D -->
|
342
|
+
|
343
|
+
</div><!-- documentation -->
|
344
|
+
|
345
|
+
|
346
|
+
<footer id="validator-badges">
|
347
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
348
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
|
349
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
350
|
+
</footer>
|
351
|
+
|
@@ -0,0 +1,416 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>module Kernel - 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/nucleon_base.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-dbg">#dbg</a>
|
68
|
+
|
69
|
+
<li><a href="#method-i-nucleon_locate">#nucleon_locate</a>
|
70
|
+
|
71
|
+
<li><a href="#method-i-nucleon_require">#nucleon_require</a>
|
72
|
+
|
73
|
+
</ul>
|
74
|
+
</nav>
|
75
|
+
|
76
|
+
</div>
|
77
|
+
|
78
|
+
<div id="project-metadata">
|
79
|
+
<nav id="fileindex-section" class="section project-section">
|
80
|
+
<h3 class="section-header">Pages</h3>
|
81
|
+
|
82
|
+
<ul>
|
83
|
+
|
84
|
+
<li class="file"><a href="./ARCHITECTURE_rdoc.html">ARCHITECTURE</a>
|
85
|
+
|
86
|
+
<li class="file"><a href="./README_rdoc.html">README</a>
|
87
|
+
|
88
|
+
<li class="file"><a href="./TODO_rdoc.html">TODO</a>
|
89
|
+
|
90
|
+
</ul>
|
91
|
+
</nav>
|
92
|
+
|
93
|
+
<nav id="classindex-section" class="section project-section">
|
94
|
+
<h3 class="section-header">Class and Module Index</h3>
|
95
|
+
|
96
|
+
<ul class="link-list">
|
97
|
+
|
98
|
+
<li><a href="./Nucleon.html">Nucleon</a>
|
99
|
+
|
100
|
+
<li><a href="./Nucleon/Action.html">Nucleon::Action</a>
|
101
|
+
|
102
|
+
<li><a href="./Nucleon/Action/Extract.html">Nucleon::Action::Extract</a>
|
103
|
+
|
104
|
+
<li><a href="./Nucleon/Action/Project.html">Nucleon::Action::Project</a>
|
105
|
+
|
106
|
+
<li><a href="./Nucleon/Action/Project/Add.html">Nucleon::Action::Project::Add</a>
|
107
|
+
|
108
|
+
<li><a href="./Nucleon/Action/Project/Create.html">Nucleon::Action::Project::Create</a>
|
109
|
+
|
110
|
+
<li><a href="./Nucleon/Action/Project/Remove.html">Nucleon::Action::Project::Remove</a>
|
111
|
+
|
112
|
+
<li><a href="./Nucleon/Action/Project/Save.html">Nucleon::Action::Project::Save</a>
|
113
|
+
|
114
|
+
<li><a href="./Nucleon/Action/Project/Update.html">Nucleon::Action::Project::Update</a>
|
115
|
+
|
116
|
+
<li><a href="./Nucleon/Codes.html">Nucleon::Codes</a>
|
117
|
+
|
118
|
+
<li><a href="./Nucleon/Command.html">Nucleon::Command</a>
|
119
|
+
|
120
|
+
<li><a href="./Nucleon/Command/Bash.html">Nucleon::Command::Bash</a>
|
121
|
+
|
122
|
+
<li><a href="./Nucleon/Config.html">Nucleon::Config</a>
|
123
|
+
|
124
|
+
<li><a href="./Nucleon/Config/Collection.html">Nucleon::Config::Collection</a>
|
125
|
+
|
126
|
+
<li><a href="./Nucleon/Config/Options.html">Nucleon::Config::Options</a>
|
127
|
+
|
128
|
+
<li><a href="./Nucleon/Core.html">Nucleon::Core</a>
|
129
|
+
|
130
|
+
<li><a href="./Nucleon/Environment.html">Nucleon::Environment</a>
|
131
|
+
|
132
|
+
<li><a href="./Nucleon/Errors.html">Nucleon::Errors</a>
|
133
|
+
|
134
|
+
<li><a href="./Nucleon/Errors/BatchError.html">Nucleon::Errors::BatchError</a>
|
135
|
+
|
136
|
+
<li><a href="./Nucleon/Errors/NucleonError.html">Nucleon::Errors::NucleonError</a>
|
137
|
+
|
138
|
+
<li><a href="./Nucleon/Errors/SSHUnavailable.html">Nucleon::Errors::SSHUnavailable</a>
|
139
|
+
|
140
|
+
<li><a href="./Nucleon/Event.html">Nucleon::Event</a>
|
141
|
+
|
142
|
+
<li><a href="./Nucleon/Event/Regex.html">Nucleon::Event::Regex</a>
|
143
|
+
|
144
|
+
<li><a href="./Nucleon/Facade.html">Nucleon::Facade</a>
|
145
|
+
|
146
|
+
<li><a href="./Nucleon/Gems.html">Nucleon::Gems</a>
|
147
|
+
|
148
|
+
<li><a href="./Nucleon/Manager.html">Nucleon::Manager</a>
|
149
|
+
|
150
|
+
<li><a href="./Nucleon/Mixin.html">Nucleon::Mixin</a>
|
151
|
+
|
152
|
+
<li><a href="./Nucleon/Mixin/Action.html">Nucleon::Mixin::Action</a>
|
153
|
+
|
154
|
+
<li><a href="./Nucleon/Mixin/Action/Commit.html">Nucleon::Mixin::Action::Commit</a>
|
155
|
+
|
156
|
+
<li><a href="./Nucleon/Mixin/Action/Project.html">Nucleon::Mixin::Action::Project</a>
|
157
|
+
|
158
|
+
<li><a href="./Nucleon/Mixin/Action/Push.html">Nucleon::Mixin::Action::Push</a>
|
159
|
+
|
160
|
+
<li><a href="./Nucleon/Mixin/Colors.html">Nucleon::Mixin::Colors</a>
|
161
|
+
|
162
|
+
<li><a href="./Nucleon/Mixin/ConfigCollection.html">Nucleon::Mixin::ConfigCollection</a>
|
163
|
+
|
164
|
+
<li><a href="./Nucleon/Mixin/ConfigOptions.html">Nucleon::Mixin::ConfigOptions</a>
|
165
|
+
|
166
|
+
<li><a href="./Nucleon/Mixin/Macro.html">Nucleon::Mixin::Macro</a>
|
167
|
+
|
168
|
+
<li><a href="./Nucleon/Mixin/Macro/ObjectInterface.html">Nucleon::Mixin::Macro::ObjectInterface</a>
|
169
|
+
|
170
|
+
<li><a href="./Nucleon/Mixin/Macro/PluginInterface.html">Nucleon::Mixin::Macro::PluginInterface</a>
|
171
|
+
|
172
|
+
<li><a href="./Nucleon/Mixin/Settings.html">Nucleon::Mixin::Settings</a>
|
173
|
+
|
174
|
+
<li><a href="./Nucleon/Mixin/SubConfig.html">Nucleon::Mixin::SubConfig</a>
|
175
|
+
|
176
|
+
<li><a href="./Nucleon/Parallel.html">Nucleon::Parallel</a>
|
177
|
+
|
178
|
+
<li><a href="./Nucleon/Parallel/ClassMethods.html">Nucleon::Parallel::ClassMethods</a>
|
179
|
+
|
180
|
+
<li><a href="./Nucleon/Parallel/InstanceMethods.html">Nucleon::Parallel::InstanceMethods</a>
|
181
|
+
|
182
|
+
<li><a href="./Nucleon/Plugin.html">Nucleon::Plugin</a>
|
183
|
+
|
184
|
+
<li><a href="./Nucleon/Plugin/Action.html">Nucleon::Plugin::Action</a>
|
185
|
+
|
186
|
+
<li><a href="./Nucleon/Plugin/Action/Option.html">Nucleon::Plugin::Action::Option</a>
|
187
|
+
|
188
|
+
<li><a href="./Nucleon/Plugin/Base.html">Nucleon::Plugin::Base</a>
|
189
|
+
|
190
|
+
<li><a href="./Nucleon/Plugin/Command.html">Nucleon::Plugin::Command</a>
|
191
|
+
|
192
|
+
<li><a href="./Nucleon/Plugin/Event.html">Nucleon::Plugin::Event</a>
|
193
|
+
|
194
|
+
<li><a href="./Nucleon/Plugin/Extension.html">Nucleon::Plugin::Extension</a>
|
195
|
+
|
196
|
+
<li><a href="./Nucleon/Plugin/Project.html">Nucleon::Plugin::Project</a>
|
197
|
+
|
198
|
+
<li><a href="./Nucleon/Plugin/Template.html">Nucleon::Plugin::Template</a>
|
199
|
+
|
200
|
+
<li><a href="./Nucleon/Plugin/Translator.html">Nucleon::Plugin::Translator</a>
|
201
|
+
|
202
|
+
<li><a href="./Nucleon/Project.html">Nucleon::Project</a>
|
203
|
+
|
204
|
+
<li><a href="./Nucleon/Project/Git.html">Nucleon::Project::Git</a>
|
205
|
+
|
206
|
+
<li><a href="./Nucleon/Project/Github.html">Nucleon::Project::Github</a>
|
207
|
+
|
208
|
+
<li><a href="./Nucleon/Template.html">Nucleon::Template</a>
|
209
|
+
|
210
|
+
<li><a href="./Nucleon/Template/JSON.html">Nucleon::Template::JSON</a>
|
211
|
+
|
212
|
+
<li><a href="./Nucleon/Template/Wrapper.html">Nucleon::Template::Wrapper</a>
|
213
|
+
|
214
|
+
<li><a href="./Nucleon/Template/YAML.html">Nucleon::Template::YAML</a>
|
215
|
+
|
216
|
+
<li><a href="./Nucleon/Translator.html">Nucleon::Translator</a>
|
217
|
+
|
218
|
+
<li><a href="./Nucleon/Translator/JSON.html">Nucleon::Translator::JSON</a>
|
219
|
+
|
220
|
+
<li><a href="./Nucleon/Translator/YAML.html">Nucleon::Translator::YAML</a>
|
221
|
+
|
222
|
+
<li><a href="./Nucleon/Util.html">Nucleon::Util</a>
|
223
|
+
|
224
|
+
<li><a href="./Nucleon/Util/CLI.html">Nucleon::Util::CLI</a>
|
225
|
+
|
226
|
+
<li><a href="./Nucleon/Util/CLI/Parser.html">Nucleon::Util::CLI::Parser</a>
|
227
|
+
|
228
|
+
<li><a href="./Nucleon/Util/Cache.html">Nucleon::Util::Cache</a>
|
229
|
+
|
230
|
+
<li><a href="./Nucleon/Util/Console.html">Nucleon::Util::Console</a>
|
231
|
+
|
232
|
+
<li><a href="./Nucleon/Util/Data.html">Nucleon::Util::Data</a>
|
233
|
+
|
234
|
+
<li><a href="./Nucleon/Util/Disk.html">Nucleon::Util::Disk</a>
|
235
|
+
|
236
|
+
<li><a href="./Nucleon/Util/Git.html">Nucleon::Util::Git</a>
|
237
|
+
|
238
|
+
<li><a href="./Nucleon/Util/Liquid.html">Nucleon::Util::Liquid</a>
|
239
|
+
|
240
|
+
<li><a href="./Nucleon/Util/Logger.html">Nucleon::Util::Logger</a>
|
241
|
+
|
242
|
+
<li><a href="./Nucleon/Util/Package.html">Nucleon::Util::Package</a>
|
243
|
+
|
244
|
+
<li><a href="./Nucleon/Util/SSH.html">Nucleon::Util::SSH</a>
|
245
|
+
|
246
|
+
<li><a href="./Nucleon/Util/SSH/Keypair.html">Nucleon::Util::SSH::Keypair</a>
|
247
|
+
|
248
|
+
<li><a href="./Nucleon/Util/Shell.html">Nucleon::Util::Shell</a>
|
249
|
+
|
250
|
+
<li><a href="./Nucleon/Util/Shell/Result.html">Nucleon::Util::Shell::Result</a>
|
251
|
+
|
252
|
+
<li><a href="./Hash.html">Hash</a>
|
253
|
+
|
254
|
+
<li><a href="./Kernel.html">Kernel</a>
|
255
|
+
|
256
|
+
</ul>
|
257
|
+
</nav>
|
258
|
+
|
259
|
+
</div>
|
260
|
+
</nav>
|
261
|
+
|
262
|
+
<div id="documentation">
|
263
|
+
<h1 class="module">module Kernel</h1>
|
264
|
+
|
265
|
+
<div id="description" class="description">
|
266
|
+
|
267
|
+
</div><!-- description -->
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
<!-- Methods -->
|
282
|
+
|
283
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
284
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
285
|
+
|
286
|
+
|
287
|
+
<div id="method-i-dbg" class="method-detail ">
|
288
|
+
|
289
|
+
<div class="method-heading">
|
290
|
+
<span class="method-name">dbg</span><span
|
291
|
+
class="method-args">(data, label = '')</span>
|
292
|
+
<span class="method-click-advice">click to toggle source</span>
|
293
|
+
</div>
|
294
|
+
|
295
|
+
|
296
|
+
<div class="method-description">
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
<div class="method-source-code" id="dbg-source">
|
303
|
+
<pre><span class="ruby-comment"># File lib/nucleon_base.rb, line 173</span>
|
304
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">dbg</span>(<span class="ruby-identifier">data</span>, <span class="ruby-identifier">label</span> = <span class="ruby-string">''</span>)
|
305
|
+
<span class="ruby-comment"># Invocations of this function should NOT be committed to the project</span>
|
306
|
+
<span class="ruby-identifier">require</span> <span class="ruby-string">'pp'</span>
|
307
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-string">'>>----------------------'</span>
|
308
|
+
<span class="ruby-keyword">unless</span> <span class="ruby-operator">!</span> <span class="ruby-identifier">label</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">label</span>.<span class="ruby-identifier">empty?</span>
|
309
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">label</span>
|
310
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-string">'---'</span>
|
311
|
+
<span class="ruby-keyword">end</span>
|
312
|
+
<span class="ruby-identifier">pp</span> <span class="ruby-identifier">data</span>
|
313
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-string">'<<'</span>
|
314
|
+
<span class="ruby-keyword">end</span></pre>
|
315
|
+
</div><!-- dbg-source -->
|
316
|
+
|
317
|
+
</div>
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
</div><!-- dbg-method -->
|
323
|
+
|
324
|
+
|
325
|
+
<div id="method-i-nucleon_locate" class="method-detail ">
|
326
|
+
|
327
|
+
<div class="method-heading">
|
328
|
+
<span class="method-name">nucleon_locate</span><span
|
329
|
+
class="method-args">(command)</span>
|
330
|
+
<span class="method-click-advice">click to toggle source</span>
|
331
|
+
</div>
|
332
|
+
|
333
|
+
|
334
|
+
<div class="method-description">
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
<div class="method-source-code" id="nucleon_locate-source">
|
341
|
+
<pre><span class="ruby-comment"># File lib/nucleon_base.rb, line 16</span>
|
342
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">nucleon_locate</span>(<span class="ruby-identifier">command</span>)
|
343
|
+
<span class="ruby-identifier">command</span> = <span class="ruby-identifier">command</span>.<span class="ruby-identifier">to_s</span>
|
344
|
+
<span class="ruby-identifier">exts</span> = <span class="ruby-constant">ENV</span>[<span class="ruby-string">'PATHEXT'</span>] <span class="ruby-operator">?</span> <span class="ruby-constant">ENV</span>[<span class="ruby-string">'PATHEXT'</span>].<span class="ruby-identifier">split</span>(<span class="ruby-string">';'</span>) <span class="ruby-operator">:</span> [<span class="ruby-string">''</span>]
|
345
|
+
<span class="ruby-constant">ENV</span>[<span class="ruby-string">'PATH'</span>].<span class="ruby-identifier">split</span>(<span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">PATH_SEPARATOR</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">path</span><span class="ruby-operator">|</span>
|
346
|
+
<span class="ruby-identifier">exts</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">ext</span><span class="ruby-operator">|</span>
|
347
|
+
<span class="ruby-identifier">exe</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">path</span>, <span class="ruby-node">"#{command}#{ext}"</span>)
|
348
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">exe</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">executable?</span>(<span class="ruby-identifier">exe</span>)
|
349
|
+
<span class="ruby-keyword">end</span>
|
350
|
+
<span class="ruby-keyword">end</span>
|
351
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span>
|
352
|
+
<span class="ruby-keyword">end</span></pre>
|
353
|
+
</div><!-- nucleon_locate-source -->
|
354
|
+
|
355
|
+
</div>
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
</div><!-- nucleon_locate-method -->
|
361
|
+
|
362
|
+
|
363
|
+
<div id="method-i-nucleon_require" class="method-detail ">
|
364
|
+
|
365
|
+
<div class="method-heading">
|
366
|
+
<span class="method-name">nucleon_require</span><span
|
367
|
+
class="method-args">(base_dir, name)</span>
|
368
|
+
<span class="method-click-advice">click to toggle source</span>
|
369
|
+
</div>
|
370
|
+
|
371
|
+
|
372
|
+
<div class="method-description">
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
|
378
|
+
<div class="method-source-code" id="nucleon_require-source">
|
379
|
+
<pre><span class="ruby-comment"># File lib/nucleon_base.rb, line 30</span>
|
380
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">nucleon_require</span>(<span class="ruby-identifier">base_dir</span>, <span class="ruby-identifier">name</span>)
|
381
|
+
<span class="ruby-identifier">name</span> = <span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>
|
382
|
+
<span class="ruby-identifier">top_level_file</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">base_dir</span>, <span class="ruby-node">"#{name}.rb"</span>)
|
383
|
+
|
384
|
+
<span class="ruby-identifier">require</span> <span class="ruby-identifier">top_level_file</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">top_level_file</span>)
|
385
|
+
|
386
|
+
<span class="ruby-identifier">directory</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">base_dir</span>, <span class="ruby-identifier">name</span>)
|
387
|
+
|
388
|
+
<span class="ruby-keyword">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-identifier">directory</span>)
|
389
|
+
<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">directory</span>, <span class="ruby-string">'**'</span>, <span class="ruby-string">'*.rb'</span>)).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">sub_file</span><span class="ruby-operator">|</span>
|
390
|
+
<span class="ruby-identifier">require</span> <span class="ruby-identifier">sub_file</span>
|
391
|
+
<span class="ruby-keyword">end</span>
|
392
|
+
<span class="ruby-keyword">end</span>
|
393
|
+
<span class="ruby-keyword">end</span></pre>
|
394
|
+
</div><!-- nucleon_require-source -->
|
395
|
+
|
396
|
+
</div>
|
397
|
+
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
</div><!-- nucleon_require-method -->
|
402
|
+
|
403
|
+
|
404
|
+
</section><!-- public-instance-method-details -->
|
405
|
+
|
406
|
+
</section><!-- 5Buntitled-5D -->
|
407
|
+
|
408
|
+
</div><!-- documentation -->
|
409
|
+
|
410
|
+
|
411
|
+
<footer id="validator-badges">
|
412
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
413
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
|
414
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
415
|
+
</footer>
|
416
|
+
|