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,641 @@
|
|
|
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::Gems - 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/gems.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-c-core">::core</a>
|
|
68
|
+
|
|
69
|
+
<li><a href="#method-c-each_gem">::each_gem</a>
|
|
70
|
+
|
|
71
|
+
<li><a href="#method-c-exist-3F">::exist?</a>
|
|
72
|
+
|
|
73
|
+
<li><a href="#method-c-logger">::logger</a>
|
|
74
|
+
|
|
75
|
+
<li><a href="#method-c-register">::register</a>
|
|
76
|
+
|
|
77
|
+
<li><a href="#method-c-register_gem">::register_gem</a>
|
|
78
|
+
|
|
79
|
+
<li><a href="#method-c-registered">::registered</a>
|
|
80
|
+
|
|
81
|
+
<li><a href="#method-c-spec">::spec</a>
|
|
82
|
+
|
|
83
|
+
<li><a href="#method-c-specs">::specs</a>
|
|
84
|
+
|
|
85
|
+
</ul>
|
|
86
|
+
</nav>
|
|
87
|
+
|
|
88
|
+
</div>
|
|
89
|
+
|
|
90
|
+
<div id="project-metadata">
|
|
91
|
+
<nav id="fileindex-section" class="section project-section">
|
|
92
|
+
<h3 class="section-header">Pages</h3>
|
|
93
|
+
|
|
94
|
+
<ul>
|
|
95
|
+
|
|
96
|
+
<li class="file"><a href="../ARCHITECTURE_rdoc.html">ARCHITECTURE</a>
|
|
97
|
+
|
|
98
|
+
<li class="file"><a href="../README_rdoc.html">README</a>
|
|
99
|
+
|
|
100
|
+
<li class="file"><a href="../TODO_rdoc.html">TODO</a>
|
|
101
|
+
|
|
102
|
+
</ul>
|
|
103
|
+
</nav>
|
|
104
|
+
|
|
105
|
+
<nav id="classindex-section" class="section project-section">
|
|
106
|
+
<h3 class="section-header">Class and Module Index</h3>
|
|
107
|
+
|
|
108
|
+
<ul class="link-list">
|
|
109
|
+
|
|
110
|
+
<li><a href="../Nucleon.html">Nucleon</a>
|
|
111
|
+
|
|
112
|
+
<li><a href="../Nucleon/Action.html">Nucleon::Action</a>
|
|
113
|
+
|
|
114
|
+
<li><a href="../Nucleon/Action/Extract.html">Nucleon::Action::Extract</a>
|
|
115
|
+
|
|
116
|
+
<li><a href="../Nucleon/Action/Project.html">Nucleon::Action::Project</a>
|
|
117
|
+
|
|
118
|
+
<li><a href="../Nucleon/Action/Project/Add.html">Nucleon::Action::Project::Add</a>
|
|
119
|
+
|
|
120
|
+
<li><a href="../Nucleon/Action/Project/Create.html">Nucleon::Action::Project::Create</a>
|
|
121
|
+
|
|
122
|
+
<li><a href="../Nucleon/Action/Project/Remove.html">Nucleon::Action::Project::Remove</a>
|
|
123
|
+
|
|
124
|
+
<li><a href="../Nucleon/Action/Project/Save.html">Nucleon::Action::Project::Save</a>
|
|
125
|
+
|
|
126
|
+
<li><a href="../Nucleon/Action/Project/Update.html">Nucleon::Action::Project::Update</a>
|
|
127
|
+
|
|
128
|
+
<li><a href="../Nucleon/Codes.html">Nucleon::Codes</a>
|
|
129
|
+
|
|
130
|
+
<li><a href="../Nucleon/Command.html">Nucleon::Command</a>
|
|
131
|
+
|
|
132
|
+
<li><a href="../Nucleon/Command/Bash.html">Nucleon::Command::Bash</a>
|
|
133
|
+
|
|
134
|
+
<li><a href="../Nucleon/Config.html">Nucleon::Config</a>
|
|
135
|
+
|
|
136
|
+
<li><a href="../Nucleon/Config/Collection.html">Nucleon::Config::Collection</a>
|
|
137
|
+
|
|
138
|
+
<li><a href="../Nucleon/Config/Options.html">Nucleon::Config::Options</a>
|
|
139
|
+
|
|
140
|
+
<li><a href="../Nucleon/Core.html">Nucleon::Core</a>
|
|
141
|
+
|
|
142
|
+
<li><a href="../Nucleon/Environment.html">Nucleon::Environment</a>
|
|
143
|
+
|
|
144
|
+
<li><a href="../Nucleon/Errors.html">Nucleon::Errors</a>
|
|
145
|
+
|
|
146
|
+
<li><a href="../Nucleon/Errors/BatchError.html">Nucleon::Errors::BatchError</a>
|
|
147
|
+
|
|
148
|
+
<li><a href="../Nucleon/Errors/NucleonError.html">Nucleon::Errors::NucleonError</a>
|
|
149
|
+
|
|
150
|
+
<li><a href="../Nucleon/Errors/SSHUnavailable.html">Nucleon::Errors::SSHUnavailable</a>
|
|
151
|
+
|
|
152
|
+
<li><a href="../Nucleon/Event.html">Nucleon::Event</a>
|
|
153
|
+
|
|
154
|
+
<li><a href="../Nucleon/Event/Regex.html">Nucleon::Event::Regex</a>
|
|
155
|
+
|
|
156
|
+
<li><a href="../Nucleon/Facade.html">Nucleon::Facade</a>
|
|
157
|
+
|
|
158
|
+
<li><a href="../Nucleon/Gems.html">Nucleon::Gems</a>
|
|
159
|
+
|
|
160
|
+
<li><a href="../Nucleon/Manager.html">Nucleon::Manager</a>
|
|
161
|
+
|
|
162
|
+
<li><a href="../Nucleon/Mixin.html">Nucleon::Mixin</a>
|
|
163
|
+
|
|
164
|
+
<li><a href="../Nucleon/Mixin/Action.html">Nucleon::Mixin::Action</a>
|
|
165
|
+
|
|
166
|
+
<li><a href="../Nucleon/Mixin/Action/Commit.html">Nucleon::Mixin::Action::Commit</a>
|
|
167
|
+
|
|
168
|
+
<li><a href="../Nucleon/Mixin/Action/Project.html">Nucleon::Mixin::Action::Project</a>
|
|
169
|
+
|
|
170
|
+
<li><a href="../Nucleon/Mixin/Action/Push.html">Nucleon::Mixin::Action::Push</a>
|
|
171
|
+
|
|
172
|
+
<li><a href="../Nucleon/Mixin/Action/Registration.html">Nucleon::Mixin::Action::Registration</a>
|
|
173
|
+
|
|
174
|
+
<li><a href="../Nucleon/Mixin/Colors.html">Nucleon::Mixin::Colors</a>
|
|
175
|
+
|
|
176
|
+
<li><a href="../Nucleon/Mixin/ConfigCollection.html">Nucleon::Mixin::ConfigCollection</a>
|
|
177
|
+
|
|
178
|
+
<li><a href="../Nucleon/Mixin/ConfigOptions.html">Nucleon::Mixin::ConfigOptions</a>
|
|
179
|
+
|
|
180
|
+
<li><a href="../Nucleon/Mixin/Macro.html">Nucleon::Mixin::Macro</a>
|
|
181
|
+
|
|
182
|
+
<li><a href="../Nucleon/Mixin/Macro/ObjectInterface.html">Nucleon::Mixin::Macro::ObjectInterface</a>
|
|
183
|
+
|
|
184
|
+
<li><a href="../Nucleon/Mixin/Macro/PluginInterface.html">Nucleon::Mixin::Macro::PluginInterface</a>
|
|
185
|
+
|
|
186
|
+
<li><a href="../Nucleon/Mixin/Settings.html">Nucleon::Mixin::Settings</a>
|
|
187
|
+
|
|
188
|
+
<li><a href="../Nucleon/Mixin/SubConfig.html">Nucleon::Mixin::SubConfig</a>
|
|
189
|
+
|
|
190
|
+
<li><a href="../Nucleon/Parallel.html">Nucleon::Parallel</a>
|
|
191
|
+
|
|
192
|
+
<li><a href="../Nucleon/Parallel/ClassMethods.html">Nucleon::Parallel::ClassMethods</a>
|
|
193
|
+
|
|
194
|
+
<li><a href="../Nucleon/Parallel/InstanceMethods.html">Nucleon::Parallel::InstanceMethods</a>
|
|
195
|
+
|
|
196
|
+
<li><a href="../Nucleon/Plugin.html">Nucleon::Plugin</a>
|
|
197
|
+
|
|
198
|
+
<li><a href="../Nucleon/Plugin/Action.html">Nucleon::Plugin::Action</a>
|
|
199
|
+
|
|
200
|
+
<li><a href="../Nucleon/Plugin/Action/Option.html">Nucleon::Plugin::Action::Option</a>
|
|
201
|
+
|
|
202
|
+
<li><a href="../Nucleon/Plugin/Base.html">Nucleon::Plugin::Base</a>
|
|
203
|
+
|
|
204
|
+
<li><a href="../Nucleon/Plugin/Command.html">Nucleon::Plugin::Command</a>
|
|
205
|
+
|
|
206
|
+
<li><a href="../Nucleon/Plugin/Event.html">Nucleon::Plugin::Event</a>
|
|
207
|
+
|
|
208
|
+
<li><a href="../Nucleon/Plugin/Extension.html">Nucleon::Plugin::Extension</a>
|
|
209
|
+
|
|
210
|
+
<li><a href="../Nucleon/Plugin/Project.html">Nucleon::Plugin::Project</a>
|
|
211
|
+
|
|
212
|
+
<li><a href="../Nucleon/Plugin/Template.html">Nucleon::Plugin::Template</a>
|
|
213
|
+
|
|
214
|
+
<li><a href="../Nucleon/Plugin/Translator.html">Nucleon::Plugin::Translator</a>
|
|
215
|
+
|
|
216
|
+
<li><a href="../Nucleon/Project.html">Nucleon::Project</a>
|
|
217
|
+
|
|
218
|
+
<li><a href="../Nucleon/Project/Git.html">Nucleon::Project::Git</a>
|
|
219
|
+
|
|
220
|
+
<li><a href="../Nucleon/Project/Github.html">Nucleon::Project::Github</a>
|
|
221
|
+
|
|
222
|
+
<li><a href="../Nucleon/Template.html">Nucleon::Template</a>
|
|
223
|
+
|
|
224
|
+
<li><a href="../Nucleon/Template/JSON.html">Nucleon::Template::JSON</a>
|
|
225
|
+
|
|
226
|
+
<li><a href="../Nucleon/Template/Wrapper.html">Nucleon::Template::Wrapper</a>
|
|
227
|
+
|
|
228
|
+
<li><a href="../Nucleon/Template/YAML.html">Nucleon::Template::YAML</a>
|
|
229
|
+
|
|
230
|
+
<li><a href="../Nucleon/Translator.html">Nucleon::Translator</a>
|
|
231
|
+
|
|
232
|
+
<li><a href="../Nucleon/Translator/JSON.html">Nucleon::Translator::JSON</a>
|
|
233
|
+
|
|
234
|
+
<li><a href="../Nucleon/Translator/YAML.html">Nucleon::Translator::YAML</a>
|
|
235
|
+
|
|
236
|
+
<li><a href="../Nucleon/Util.html">Nucleon::Util</a>
|
|
237
|
+
|
|
238
|
+
<li><a href="../Nucleon/Util/CLI.html">Nucleon::Util::CLI</a>
|
|
239
|
+
|
|
240
|
+
<li><a href="../Nucleon/Util/CLI/Parser.html">Nucleon::Util::CLI::Parser</a>
|
|
241
|
+
|
|
242
|
+
<li><a href="../Nucleon/Util/Cache.html">Nucleon::Util::Cache</a>
|
|
243
|
+
|
|
244
|
+
<li><a href="../Nucleon/Util/Console.html">Nucleon::Util::Console</a>
|
|
245
|
+
|
|
246
|
+
<li><a href="../Nucleon/Util/Data.html">Nucleon::Util::Data</a>
|
|
247
|
+
|
|
248
|
+
<li><a href="../Nucleon/Util/Disk.html">Nucleon::Util::Disk</a>
|
|
249
|
+
|
|
250
|
+
<li><a href="../Nucleon/Util/Git.html">Nucleon::Util::Git</a>
|
|
251
|
+
|
|
252
|
+
<li><a href="../Nucleon/Util/Liquid.html">Nucleon::Util::Liquid</a>
|
|
253
|
+
|
|
254
|
+
<li><a href="../Nucleon/Util/Logger.html">Nucleon::Util::Logger</a>
|
|
255
|
+
|
|
256
|
+
<li><a href="../Nucleon/Util/Package.html">Nucleon::Util::Package</a>
|
|
257
|
+
|
|
258
|
+
<li><a href="../Nucleon/Util/SSH.html">Nucleon::Util::SSH</a>
|
|
259
|
+
|
|
260
|
+
<li><a href="../Nucleon/Util/SSH/Keypair.html">Nucleon::Util::SSH::Keypair</a>
|
|
261
|
+
|
|
262
|
+
<li><a href="../Nucleon/Util/Shell.html">Nucleon::Util::Shell</a>
|
|
263
|
+
|
|
264
|
+
<li><a href="../Nucleon/Util/Shell/Result.html">Nucleon::Util::Shell::Result</a>
|
|
265
|
+
|
|
266
|
+
<li><a href="../Hash.html">Hash</a>
|
|
267
|
+
|
|
268
|
+
<li><a href="../Kernel.html">Kernel</a>
|
|
269
|
+
|
|
270
|
+
</ul>
|
|
271
|
+
</nav>
|
|
272
|
+
|
|
273
|
+
</div>
|
|
274
|
+
</nav>
|
|
275
|
+
|
|
276
|
+
<div id="documentation">
|
|
277
|
+
<h1 class="module">module Nucleon::Gems</h1>
|
|
278
|
+
|
|
279
|
+
<div id="description" class="description">
|
|
280
|
+
|
|
281
|
+
</div><!-- description -->
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
<!-- Methods -->
|
|
296
|
+
|
|
297
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
|
298
|
+
<h3 class="section-header">Public Class Methods</h3>
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
<div id="method-c-core" class="method-detail ">
|
|
302
|
+
|
|
303
|
+
<div class="method-heading">
|
|
304
|
+
<span class="method-name">core</span><span
|
|
305
|
+
class="method-args">()</span>
|
|
306
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
307
|
+
</div>
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
<div class="method-description">
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
<div class="method-source-code" id="core-source">
|
|
317
|
+
<pre><span class="ruby-comment"># File lib/core/gems.rb, line 19</span>
|
|
318
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">core</span>
|
|
319
|
+
<span class="ruby-identifier">@@core</span>
|
|
320
|
+
<span class="ruby-keyword">end</span></pre>
|
|
321
|
+
</div><!-- core-source -->
|
|
322
|
+
|
|
323
|
+
</div>
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
</div><!-- core-method -->
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
<div id="method-c-each_gem" class="method-detail ">
|
|
332
|
+
|
|
333
|
+
<div class="method-heading">
|
|
334
|
+
<span class="method-name">each_gem</span><span
|
|
335
|
+
class="method-args">(&block)</span>
|
|
336
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
337
|
+
</div>
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
<div class="method-description">
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
<div class="method-source-code" id="each_gem-source">
|
|
347
|
+
<pre><span class="ruby-comment"># File lib/core/gems.rb, line 76</span>
|
|
348
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">each_gem</span>(&<span class="ruby-identifier">block</span>)
|
|
349
|
+
<span class="ruby-keyword">if</span> <span class="ruby-keyword">defined?</span>(<span class="ruby-constant">Gem</span>)
|
|
350
|
+
<span class="ruby-keyword">if</span> <span class="ruby-operator">!</span> <span class="ruby-keyword">defined?</span>(<span class="ruby-constant">Bundler</span>) <span class="ruby-operator">&&</span> <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Specification</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:latest_specs</span>)
|
|
351
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-string">"Not using bundler"</span>)
|
|
352
|
+
<span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Specification</span>.<span class="ruby-identifier">latest_specs</span>(<span class="ruby-keyword">true</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">spec</span><span class="ruby-operator">|</span>
|
|
353
|
+
<span class="ruby-identifier">block</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">spec</span>)
|
|
354
|
+
<span class="ruby-keyword">end</span>
|
|
355
|
+
<span class="ruby-keyword">else</span>
|
|
356
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-string">"Using bundler or Gem specification without latest_specs"</span>)
|
|
357
|
+
<span class="ruby-constant">Gem</span>.<span class="ruby-identifier">loaded_specs</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span>, <span class="ruby-identifier">spec</span><span class="ruby-operator">|</span>
|
|
358
|
+
<span class="ruby-identifier">block</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">spec</span>)
|
|
359
|
+
<span class="ruby-keyword">end</span>
|
|
360
|
+
<span class="ruby-keyword">end</span>
|
|
361
|
+
<span class="ruby-keyword">end</span>
|
|
362
|
+
<span class="ruby-keyword">end</span></pre>
|
|
363
|
+
</div><!-- each_gem-source -->
|
|
364
|
+
|
|
365
|
+
</div>
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
</div><!-- each_gem-method -->
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
<div id="method-c-exist-3F" class="method-detail ">
|
|
374
|
+
|
|
375
|
+
<div class="method-heading">
|
|
376
|
+
<span class="method-name">exist?</span><span
|
|
377
|
+
class="method-args">(*names)</span>
|
|
378
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
379
|
+
</div>
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
<div class="method-description">
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
<div class="method-source-code" id="exist-3F-source">
|
|
389
|
+
<pre><span class="ruby-comment"># File lib/core/gems.rb, line 94</span>
|
|
390
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">exist?</span>(*<span class="ruby-identifier">names</span>)
|
|
391
|
+
<span class="ruby-identifier">checks</span> = <span class="ruby-constant">Hash</span>[<span class="ruby-identifier">names</span>.<span class="ruby-identifier">map</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span> [ <span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-keyword">true</span> ] }]
|
|
392
|
+
<span class="ruby-identifier">each_gem</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">spec</span><span class="ruby-operator">|</span>
|
|
393
|
+
<span class="ruby-identifier">checks</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>)
|
|
394
|
+
<span class="ruby-keyword">end</span>
|
|
395
|
+
<span class="ruby-identifier">checks</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-operator">?</span> <span class="ruby-keyword">true</span> <span class="ruby-operator">:</span> <span class="ruby-keyword">false</span>
|
|
396
|
+
<span class="ruby-keyword">end</span></pre>
|
|
397
|
+
</div><!-- exist-3F-source -->
|
|
398
|
+
|
|
399
|
+
</div>
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
</div><!-- exist-3F-method -->
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
<div id="method-c-logger" class="method-detail ">
|
|
408
|
+
|
|
409
|
+
<div class="method-heading">
|
|
410
|
+
<span class="method-name">logger</span><span
|
|
411
|
+
class="method-args">()</span>
|
|
412
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
413
|
+
</div>
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
<div class="method-description">
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
<div class="method-source-code" id="logger-source">
|
|
423
|
+
<pre><span class="ruby-comment"># File lib/core/gems.rb, line 13</span>
|
|
424
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">logger</span>
|
|
425
|
+
<span class="ruby-constant">Core</span>.<span class="ruby-identifier">logger</span>
|
|
426
|
+
<span class="ruby-keyword">end</span></pre>
|
|
427
|
+
</div><!-- logger-source -->
|
|
428
|
+
|
|
429
|
+
</div>
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
</div><!-- logger-method -->
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
<div id="method-c-register" class="method-detail ">
|
|
438
|
+
|
|
439
|
+
<div class="method-heading">
|
|
440
|
+
<span class="method-name">register</span><span
|
|
441
|
+
class="method-args">(reset = false)</span>
|
|
442
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
443
|
+
</div>
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
<div class="method-description">
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
<div class="method-source-code" id="register-source">
|
|
453
|
+
<pre><span class="ruby-comment"># File lib/core/gems.rb, line 31</span>
|
|
454
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">register</span>(<span class="ruby-identifier">reset</span> = <span class="ruby-keyword">false</span>)
|
|
455
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">reset</span> <span class="ruby-operator">||</span> <span class="ruby-constant">Util</span><span class="ruby-operator">::</span><span class="ruby-constant">Data</span>.<span class="ruby-identifier">empty?</span>(<span class="ruby-identifier">@@gems</span>)
|
|
456
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>(<span class="ruby-node">"Registering external gem defined Nucleon plugins at #{Time.now}"</span>)
|
|
457
|
+
|
|
458
|
+
<span class="ruby-identifier">each_gem</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">spec</span><span class="ruby-operator">|</span>
|
|
459
|
+
<span class="ruby-identifier">register_gem</span>(<span class="ruby-identifier">spec</span>)
|
|
460
|
+
<span class="ruby-keyword">end</span>
|
|
461
|
+
<span class="ruby-keyword">end</span>
|
|
462
|
+
<span class="ruby-identifier">@@gems</span>
|
|
463
|
+
<span class="ruby-keyword">end</span></pre>
|
|
464
|
+
</div><!-- register-source -->
|
|
465
|
+
|
|
466
|
+
</div>
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
</div><!-- register-method -->
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
<div id="method-c-register_gem" class="method-detail ">
|
|
475
|
+
|
|
476
|
+
<div class="method-heading">
|
|
477
|
+
<span class="method-name">register_gem</span><span
|
|
478
|
+
class="method-args">(spec)</span>
|
|
479
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
480
|
+
</div>
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
<div class="method-description">
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
<div class="method-source-code" id="register_gem-source">
|
|
490
|
+
<pre><span class="ruby-comment"># File lib/core/gems.rb, line 44</span>
|
|
491
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">register_gem</span>(<span class="ruby-identifier">spec</span>)
|
|
492
|
+
<span class="ruby-identifier">name</span> = <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span>
|
|
493
|
+
<span class="ruby-identifier">base_path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">full_gem_path</span>, <span class="ruby-string">'lib'</span>)
|
|
494
|
+
|
|
495
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-value">:nucleon</span>
|
|
496
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-string">"Setting Nucleon core gemspec"</span>)
|
|
497
|
+
<span class="ruby-identifier">@@core</span> = <span class="ruby-identifier">spec</span>
|
|
498
|
+
<span class="ruby-identifier">@@gems</span>[<span class="ruby-identifier">name</span>] = {
|
|
499
|
+
<span class="ruby-value">:spec</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">spec</span>,
|
|
500
|
+
<span class="ruby-value">:base_path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">base_path</span>,
|
|
501
|
+
<span class="ruby-value">:namespaces</span> =<span class="ruby-operator">></span> [ <span class="ruby-value">:nucleon</span> ]
|
|
502
|
+
}
|
|
503
|
+
<span class="ruby-keyword">else</span>
|
|
504
|
+
<span class="ruby-constant">Manager</span>.<span class="ruby-identifier">connection</span>.<span class="ruby-identifier">register</span>(<span class="ruby-identifier">base_path</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">data</span><span class="ruby-operator">|</span>
|
|
505
|
+
<span class="ruby-identifier">namespace</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value">:namespace</span>]
|
|
506
|
+
<span class="ruby-identifier">plugin_path</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value">:directory</span>]
|
|
507
|
+
|
|
508
|
+
<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>(<span class="ruby-node">"Registering gem #{name} at #{plugin_path} at #{Time.now}"</span>) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">@@gems</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">name</span>)
|
|
509
|
+
|
|
510
|
+
<span class="ruby-identifier">@@gems</span>[<span class="ruby-identifier">name</span>] = {
|
|
511
|
+
<span class="ruby-value">:spec</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">spec</span>,
|
|
512
|
+
<span class="ruby-value">:base_path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">base_path</span>,
|
|
513
|
+
<span class="ruby-value">:namespaces</span> =<span class="ruby-operator">></span> []
|
|
514
|
+
}
|
|
515
|
+
<span class="ruby-identifier">@@gems</span>[<span class="ruby-identifier">name</span>][<span class="ruby-value">:namespaces</span>] <span class="ruby-operator"><<</span> <span class="ruby-identifier">namespace</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">@@gems</span>[<span class="ruby-identifier">name</span>][<span class="ruby-value">:namespaces</span>].<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">namespace</span>)
|
|
516
|
+
<span class="ruby-keyword">end</span>
|
|
517
|
+
<span class="ruby-keyword">end</span>
|
|
518
|
+
<span class="ruby-keyword">end</span></pre>
|
|
519
|
+
</div><!-- register_gem-source -->
|
|
520
|
+
|
|
521
|
+
</div>
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
</div><!-- register_gem-method -->
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
<div id="method-c-registered" class="method-detail ">
|
|
530
|
+
|
|
531
|
+
<div class="method-heading">
|
|
532
|
+
<span class="method-name">registered</span><span
|
|
533
|
+
class="method-args">()</span>
|
|
534
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
535
|
+
</div>
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
<div class="method-description">
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
<div class="method-source-code" id="registered-source">
|
|
545
|
+
<pre><span class="ruby-comment"># File lib/core/gems.rb, line 25</span>
|
|
546
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">registered</span>
|
|
547
|
+
<span class="ruby-identifier">@@gems</span>
|
|
548
|
+
<span class="ruby-keyword">end</span></pre>
|
|
549
|
+
</div><!-- registered-source -->
|
|
550
|
+
|
|
551
|
+
</div>
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
</div><!-- registered-method -->
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
<div id="method-c-spec" class="method-detail ">
|
|
560
|
+
|
|
561
|
+
<div class="method-heading">
|
|
562
|
+
<span class="method-name">spec</span><span
|
|
563
|
+
class="method-args">(name)</span>
|
|
564
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
565
|
+
</div>
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
<div class="method-description">
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
<div class="method-source-code" id="spec-source">
|
|
575
|
+
<pre><span class="ruby-comment"># File lib/core/gems.rb, line 118</span>
|
|
576
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">spec</span>(<span class="ruby-identifier">name</span>)
|
|
577
|
+
<span class="ruby-identifier">results</span> = <span class="ruby-identifier">specs</span>(<span class="ruby-identifier">name</span>)
|
|
578
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">results</span>[<span class="ruby-value">0</span>] <span class="ruby-keyword">unless</span> <span class="ruby-identifier">results</span>.<span class="ruby-identifier">empty?</span>
|
|
579
|
+
<span class="ruby-keyword">nil</span>
|
|
580
|
+
<span class="ruby-keyword">end</span></pre>
|
|
581
|
+
</div><!-- spec-source -->
|
|
582
|
+
|
|
583
|
+
</div>
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
</div><!-- spec-method -->
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
<div id="method-c-specs" class="method-detail ">
|
|
592
|
+
|
|
593
|
+
<div class="method-heading">
|
|
594
|
+
<span class="method-name">specs</span><span
|
|
595
|
+
class="method-args">(*names)</span>
|
|
596
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
597
|
+
</div>
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
<div class="method-description">
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
<div class="method-source-code" id="specs-source">
|
|
607
|
+
<pre><span class="ruby-comment"># File lib/core/gems.rb, line 104</span>
|
|
608
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">specs</span>(*<span class="ruby-identifier">names</span>)
|
|
609
|
+
<span class="ruby-identifier">checks</span> = <span class="ruby-constant">Hash</span>[<span class="ruby-identifier">names</span>.<span class="ruby-identifier">map</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span> [ <span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-keyword">true</span> ] }]
|
|
610
|
+
<span class="ruby-identifier">specs</span> = []
|
|
611
|
+
|
|
612
|
+
<span class="ruby-identifier">each_gem</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">spec</span><span class="ruby-operator">|</span>
|
|
613
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">checks</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>)
|
|
614
|
+
<span class="ruby-identifier">specs</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">spec</span>
|
|
615
|
+
<span class="ruby-keyword">end</span>
|
|
616
|
+
<span class="ruby-keyword">end</span>
|
|
617
|
+
<span class="ruby-identifier">specs</span>
|
|
618
|
+
<span class="ruby-keyword">end</span></pre>
|
|
619
|
+
</div><!-- specs-source -->
|
|
620
|
+
|
|
621
|
+
</div>
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
</div><!-- specs-method -->
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
</section><!-- public-class-method-details -->
|
|
630
|
+
|
|
631
|
+
</section><!-- 5Buntitled-5D -->
|
|
632
|
+
|
|
633
|
+
</div><!-- documentation -->
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
<footer id="validator-badges">
|
|
637
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
|
638
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
|
|
639
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
|
640
|
+
</footer>
|
|
641
|
+
|