nucleon 0.1.19 → 0.2.0
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 +1 -0
- data/TODO.rdoc +0 -3
- data/VERSION +1 -1
- data/bin/nucleon +19 -0
- data/lib/core/config.rb +11 -7
- data/lib/core/environment.rb +338 -0
- data/lib/core/facade.rb +150 -98
- data/lib/core/manager.rb +160 -249
- data/lib/core/mixin/action/project.rb +2 -2
- data/lib/core/mixin/macro/plugin_interface.rb +11 -11
- data/lib/core/plugin/action.rb +277 -24
- data/lib/core/plugin/base.rb +22 -14
- data/lib/core/plugin/command.rb +1 -1
- data/lib/core/plugin/event.rb +3 -3
- data/lib/core/plugin/extension.rb +1 -1
- data/lib/core/plugin/project.rb +15 -15
- data/lib/core/plugin/template.rb +1 -1
- data/lib/core/plugin/translator.rb +1 -1
- data/lib/core/util/cache.rb +1 -1
- data/lib/core/util/cli.rb +32 -3
- data/lib/core/util/console.rb +30 -10
- data/lib/core/util/data.rb +11 -3
- data/lib/core/util/logger.rb +1 -1
- data/lib/core/util/shell.rb +6 -3
- data/lib/core/util/ssh.rb +148 -24
- data/lib/nucleon/action/extract.rb +11 -4
- data/lib/nucleon/action/{add.rb → project/add.rb} +13 -4
- data/lib/nucleon/action/{create.rb → project/create.rb} +12 -3
- data/lib/nucleon/action/{remove.rb → project/remove.rb} +11 -2
- data/lib/nucleon/action/{save.rb → project/save.rb} +11 -2
- data/lib/nucleon/action/{update.rb → project/update.rb} +11 -2
- data/lib/nucleon/command/bash.rb +1 -1
- data/lib/nucleon/event/regex.rb +1 -1
- data/lib/nucleon/project/git.rb +3 -3
- data/lib/nucleon/template/{json.rb → JSON.rb} +1 -1
- data/lib/nucleon/template/{yaml.rb → YAML.rb} +1 -1
- data/lib/nucleon/template/wrapper.rb +1 -1
- data/lib/nucleon/translator/{json.rb → JSON.rb} +1 -1
- data/lib/nucleon/translator/{yaml.rb → YAML.rb} +1 -1
- data/lib/nucleon_base.rb +26 -15
- data/locales/en.yml +69 -44
- data/nucleon.gemspec +129 -11
- data/rdoc/site/0.1.19/ARCHITECTURE_rdoc.html +634 -0
- data/rdoc/site/0.1.19/Hash.html +347 -0
- data/rdoc/site/0.1.19/Kernel.html +413 -0
- data/rdoc/site/0.1.19/Nucleon.html +570 -0
- data/rdoc/site/0.1.19/Nucleon/Action.html +280 -0
- data/rdoc/site/0.1.19/Nucleon/Action/Add.html +458 -0
- data/rdoc/site/0.1.19/Nucleon/Action/Create.html +415 -0
- data/rdoc/site/0.1.19/Nucleon/Action/Extract.html +413 -0
- data/rdoc/site/0.1.19/Nucleon/Action/Remove.html +461 -0
- data/rdoc/site/0.1.19/Nucleon/Action/Save.html +434 -0
- data/rdoc/site/0.1.19/Nucleon/Action/Update.html +381 -0
- data/rdoc/site/0.1.19/Nucleon/Codes.html +563 -0
- data/rdoc/site/0.1.19/Nucleon/Command.html +275 -0
- data/rdoc/site/0.1.19/Nucleon/Command/Bash.html +544 -0
- data/rdoc/site/0.1.19/Nucleon/Config.html +1623 -0
- data/rdoc/site/0.1.19/Nucleon/Config/Collection.html +509 -0
- data/rdoc/site/0.1.19/Nucleon/Config/Options.html +489 -0
- data/rdoc/site/0.1.19/Nucleon/Core.html +635 -0
- data/rdoc/site/0.1.19/Nucleon/Errors.html +275 -0
- data/rdoc/site/0.1.19/Nucleon/Errors/BatchError.html +281 -0
- data/rdoc/site/0.1.19/Nucleon/Errors/NucleonError.html +657 -0
- data/rdoc/site/0.1.19/Nucleon/Errors/SSHUnavailable.html +281 -0
- data/rdoc/site/0.1.19/Nucleon/Event.html +275 -0
- data/rdoc/site/0.1.19/Nucleon/Event/Regex.html +467 -0
- data/rdoc/site/0.1.19/Nucleon/Facade.html +2336 -0
- data/rdoc/site/0.1.19/Nucleon/Gems.html +635 -0
- data/rdoc/site/0.1.19/Nucleon/Manager.html +1828 -0
- data/rdoc/site/0.1.19/Nucleon/Mixin.html +284 -0
- data/rdoc/site/0.1.19/Nucleon/Mixin/Action.html +277 -0
- data/rdoc/site/0.1.19/Nucleon/Mixin/Action/Commit.html +381 -0
- data/rdoc/site/0.1.19/Nucleon/Mixin/Action/Project.html +395 -0
- data/rdoc/site/0.1.19/Nucleon/Mixin/Action/Push.html +371 -0
- data/rdoc/site/0.1.19/Nucleon/Mixin/Colors.html +545 -0
- data/rdoc/site/0.1.19/Nucleon/Mixin/ConfigCollection.html +481 -0
- data/rdoc/site/0.1.19/Nucleon/Mixin/ConfigOptions.html +449 -0
- data/rdoc/site/0.1.19/Nucleon/Mixin/Macro.html +276 -0
- data/rdoc/site/0.1.19/Nucleon/Mixin/Macro/ObjectInterface.html +695 -0
- data/rdoc/site/0.1.19/Nucleon/Mixin/Macro/PluginInterface.html +682 -0
- data/rdoc/site/0.1.19/Nucleon/Mixin/Settings.html +481 -0
- data/rdoc/site/0.1.19/Nucleon/Mixin/SubConfig.html +887 -0
- data/rdoc/site/0.1.19/Nucleon/Parallel.html +325 -0
- data/rdoc/site/0.1.19/Nucleon/Parallel/ClassMethods.html +325 -0
- data/rdoc/site/0.1.19/Nucleon/Parallel/InstanceMethods.html +334 -0
- data/rdoc/site/0.1.19/Nucleon/Plugin.html +282 -0
- data/rdoc/site/0.1.19/Nucleon/Plugin/Action.html +1368 -0
- data/rdoc/site/0.1.19/Nucleon/Plugin/Action/Option.html +459 -0
- data/rdoc/site/0.1.19/Nucleon/Plugin/Base.html +1737 -0
- data/rdoc/site/0.1.19/Nucleon/Plugin/Command.html +721 -0
- data/rdoc/site/0.1.19/Nucleon/Plugin/Event.html +442 -0
- data/rdoc/site/0.1.19/Nucleon/Plugin/Extension.html +281 -0
- data/rdoc/site/0.1.19/Nucleon/Plugin/Project.html +2864 -0
- data/rdoc/site/0.1.19/Nucleon/Plugin/Template.html +476 -0
- data/rdoc/site/0.1.19/Nucleon/Plugin/Translator.html +371 -0
- data/rdoc/site/0.1.19/Nucleon/Project.html +276 -0
- data/rdoc/site/0.1.19/Nucleon/Project/Git.html +1801 -0
- data/rdoc/site/0.1.19/Nucleon/Project/Github.html +549 -0
- data/rdoc/site/0.1.19/Nucleon/Template.html +277 -0
- data/rdoc/site/0.1.19/Nucleon/Template/Json.html +329 -0
- data/rdoc/site/0.1.19/Nucleon/Template/Wrapper.html +329 -0
- data/rdoc/site/0.1.19/Nucleon/Template/Yaml.html +329 -0
- data/rdoc/site/0.1.19/Nucleon/Translator.html +276 -0
- data/rdoc/site/0.1.19/Nucleon/Translator/Json.html +366 -0
- data/rdoc/site/0.1.19/Nucleon/Translator/Yaml.html +366 -0
- data/rdoc/site/0.1.19/Nucleon/Util.html +285 -0
- data/rdoc/site/0.1.19/Nucleon/Util/CLI.html +388 -0
- data/rdoc/site/0.1.19/Nucleon/Util/CLI/Parser.html +1183 -0
- data/rdoc/site/0.1.19/Nucleon/Util/Cache.html +780 -0
- data/rdoc/site/0.1.19/Nucleon/Util/Console.html +1294 -0
- data/rdoc/site/0.1.19/Nucleon/Util/Data.html +1399 -0
- data/rdoc/site/0.1.19/Nucleon/Util/Disk.html +522 -0
- data/rdoc/site/0.1.19/Nucleon/Util/Git.html +361 -0
- data/rdoc/site/0.1.19/Nucleon/Util/Liquid.html +365 -0
- data/rdoc/site/0.1.19/Nucleon/Util/Logger.html +806 -0
- data/rdoc/site/0.1.19/Nucleon/Util/Package.html +558 -0
- data/rdoc/site/0.1.19/Nucleon/Util/SSH.html +910 -0
- data/rdoc/site/0.1.19/Nucleon/Util/SSH/Keypair.html +453 -0
- data/rdoc/site/0.1.19/Nucleon/Util/Shell.html +686 -0
- data/rdoc/site/0.1.19/Nucleon/Util/Shell/Result.html +497 -0
- data/rdoc/site/0.1.19/README_rdoc.html +312 -0
- data/rdoc/site/0.1.19/TODO_rdoc.html +267 -0
- data/rdoc/site/0.1.19/created.rid +60 -0
- data/rdoc/site/0.1.19/images/add.png +0 -0
- data/rdoc/site/0.1.19/images/brick.png +0 -0
- data/rdoc/site/0.1.19/images/brick_link.png +0 -0
- data/rdoc/site/0.1.19/images/bug.png +0 -0
- data/rdoc/site/0.1.19/images/bullet_black.png +0 -0
- data/rdoc/site/0.1.19/images/bullet_toggle_minus.png +0 -0
- data/rdoc/site/0.1.19/images/bullet_toggle_plus.png +0 -0
- data/rdoc/site/0.1.19/images/date.png +0 -0
- data/rdoc/site/0.1.19/images/delete.png +0 -0
- data/rdoc/site/0.1.19/images/find.png +0 -0
- data/rdoc/site/0.1.19/images/loadingAnimation.gif +0 -0
- data/rdoc/site/0.1.19/images/macFFBgHack.png +0 -0
- data/rdoc/site/0.1.19/images/package.png +0 -0
- data/rdoc/site/0.1.19/images/page_green.png +0 -0
- data/rdoc/site/0.1.19/images/page_white_text.png +0 -0
- data/rdoc/site/0.1.19/images/page_white_width.png +0 -0
- data/rdoc/site/0.1.19/images/plugin.png +0 -0
- data/rdoc/site/0.1.19/images/ruby.png +0 -0
- data/rdoc/site/0.1.19/images/tag_blue.png +0 -0
- data/rdoc/site/0.1.19/images/tag_green.png +0 -0
- data/rdoc/site/0.1.19/images/transparent.png +0 -0
- data/rdoc/site/0.1.19/images/wrench.png +0 -0
- data/rdoc/site/0.1.19/images/wrench_orange.png +0 -0
- data/rdoc/site/0.1.19/images/zoom.png +0 -0
- data/rdoc/site/0.1.19/index.html +311 -0
- data/rdoc/site/0.1.19/js/darkfish.js +155 -0
- data/rdoc/site/0.1.19/js/jquery.js +18 -0
- data/rdoc/site/0.1.19/js/navigation.js +142 -0
- data/rdoc/site/0.1.19/js/search.js +94 -0
- data/rdoc/site/0.1.19/js/search_index.js +1 -0
- data/rdoc/site/0.1.19/js/searcher.js +228 -0
- data/rdoc/site/0.1.19/rdoc.css +543 -0
- data/rdoc/site/0.1.19/table_of_contents.html +1541 -0
- metadata +140 -11
@@ -0,0 +1,280 @@
|
|
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::Action - nucleon 0.1.19</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/action/add.rb
|
51
|
+
<li>lib/nucleon/action/create.rb
|
52
|
+
<li>lib/nucleon/action/extract.rb
|
53
|
+
<li>lib/nucleon/action/remove.rb
|
54
|
+
<li>lib/nucleon/action/save.rb
|
55
|
+
<li>lib/nucleon/action/update.rb
|
56
|
+
</ul>
|
57
|
+
</nav>
|
58
|
+
|
59
|
+
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="class-metadata">
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
</div>
|
68
|
+
|
69
|
+
<div id="project-metadata">
|
70
|
+
<nav id="fileindex-section" class="section project-section">
|
71
|
+
<h3 class="section-header">Pages</h3>
|
72
|
+
|
73
|
+
<ul>
|
74
|
+
|
75
|
+
<li class="file"><a href="../ARCHITECTURE_rdoc.html">ARCHITECTURE</a>
|
76
|
+
|
77
|
+
<li class="file"><a href="../README_rdoc.html">README</a>
|
78
|
+
|
79
|
+
<li class="file"><a href="../TODO_rdoc.html">TODO</a>
|
80
|
+
|
81
|
+
</ul>
|
82
|
+
</nav>
|
83
|
+
|
84
|
+
<nav id="classindex-section" class="section project-section">
|
85
|
+
<h3 class="section-header">Class and Module Index</h3>
|
86
|
+
|
87
|
+
<ul class="link-list">
|
88
|
+
|
89
|
+
<li><a href="../Nucleon.html">Nucleon</a>
|
90
|
+
|
91
|
+
<li><a href="../Nucleon/Action.html">Nucleon::Action</a>
|
92
|
+
|
93
|
+
<li><a href="../Nucleon/Action/Add.html">Nucleon::Action::Add</a>
|
94
|
+
|
95
|
+
<li><a href="../Nucleon/Action/Create.html">Nucleon::Action::Create</a>
|
96
|
+
|
97
|
+
<li><a href="../Nucleon/Action/Extract.html">Nucleon::Action::Extract</a>
|
98
|
+
|
99
|
+
<li><a href="../Nucleon/Action/Remove.html">Nucleon::Action::Remove</a>
|
100
|
+
|
101
|
+
<li><a href="../Nucleon/Action/Save.html">Nucleon::Action::Save</a>
|
102
|
+
|
103
|
+
<li><a href="../Nucleon/Action/Update.html">Nucleon::Action::Update</a>
|
104
|
+
|
105
|
+
<li><a href="../Nucleon/Codes.html">Nucleon::Codes</a>
|
106
|
+
|
107
|
+
<li><a href="../Nucleon/Command.html">Nucleon::Command</a>
|
108
|
+
|
109
|
+
<li><a href="../Nucleon/Command/Bash.html">Nucleon::Command::Bash</a>
|
110
|
+
|
111
|
+
<li><a href="../Nucleon/Config.html">Nucleon::Config</a>
|
112
|
+
|
113
|
+
<li><a href="../Nucleon/Config/Collection.html">Nucleon::Config::Collection</a>
|
114
|
+
|
115
|
+
<li><a href="../Nucleon/Config/Options.html">Nucleon::Config::Options</a>
|
116
|
+
|
117
|
+
<li><a href="../Nucleon/Core.html">Nucleon::Core</a>
|
118
|
+
|
119
|
+
<li><a href="../Nucleon/Errors.html">Nucleon::Errors</a>
|
120
|
+
|
121
|
+
<li><a href="../Nucleon/Errors/BatchError.html">Nucleon::Errors::BatchError</a>
|
122
|
+
|
123
|
+
<li><a href="../Nucleon/Errors/NucleonError.html">Nucleon::Errors::NucleonError</a>
|
124
|
+
|
125
|
+
<li><a href="../Nucleon/Errors/SSHUnavailable.html">Nucleon::Errors::SSHUnavailable</a>
|
126
|
+
|
127
|
+
<li><a href="../Nucleon/Event.html">Nucleon::Event</a>
|
128
|
+
|
129
|
+
<li><a href="../Nucleon/Event/Regex.html">Nucleon::Event::Regex</a>
|
130
|
+
|
131
|
+
<li><a href="../Nucleon/Facade.html">Nucleon::Facade</a>
|
132
|
+
|
133
|
+
<li><a href="../Nucleon/Gems.html">Nucleon::Gems</a>
|
134
|
+
|
135
|
+
<li><a href="../Nucleon/Manager.html">Nucleon::Manager</a>
|
136
|
+
|
137
|
+
<li><a href="../Nucleon/Mixin.html">Nucleon::Mixin</a>
|
138
|
+
|
139
|
+
<li><a href="../Nucleon/Mixin/Action.html">Nucleon::Mixin::Action</a>
|
140
|
+
|
141
|
+
<li><a href="../Nucleon/Mixin/Action/Commit.html">Nucleon::Mixin::Action::Commit</a>
|
142
|
+
|
143
|
+
<li><a href="../Nucleon/Mixin/Action/Project.html">Nucleon::Mixin::Action::Project</a>
|
144
|
+
|
145
|
+
<li><a href="../Nucleon/Mixin/Action/Push.html">Nucleon::Mixin::Action::Push</a>
|
146
|
+
|
147
|
+
<li><a href="../Nucleon/Mixin/Colors.html">Nucleon::Mixin::Colors</a>
|
148
|
+
|
149
|
+
<li><a href="../Nucleon/Mixin/ConfigCollection.html">Nucleon::Mixin::ConfigCollection</a>
|
150
|
+
|
151
|
+
<li><a href="../Nucleon/Mixin/ConfigOptions.html">Nucleon::Mixin::ConfigOptions</a>
|
152
|
+
|
153
|
+
<li><a href="../Nucleon/Mixin/Macro.html">Nucleon::Mixin::Macro</a>
|
154
|
+
|
155
|
+
<li><a href="../Nucleon/Mixin/Macro/ObjectInterface.html">Nucleon::Mixin::Macro::ObjectInterface</a>
|
156
|
+
|
157
|
+
<li><a href="../Nucleon/Mixin/Macro/PluginInterface.html">Nucleon::Mixin::Macro::PluginInterface</a>
|
158
|
+
|
159
|
+
<li><a href="../Nucleon/Mixin/Settings.html">Nucleon::Mixin::Settings</a>
|
160
|
+
|
161
|
+
<li><a href="../Nucleon/Mixin/SubConfig.html">Nucleon::Mixin::SubConfig</a>
|
162
|
+
|
163
|
+
<li><a href="../Nucleon/Parallel.html">Nucleon::Parallel</a>
|
164
|
+
|
165
|
+
<li><a href="../Nucleon/Parallel/ClassMethods.html">Nucleon::Parallel::ClassMethods</a>
|
166
|
+
|
167
|
+
<li><a href="../Nucleon/Parallel/InstanceMethods.html">Nucleon::Parallel::InstanceMethods</a>
|
168
|
+
|
169
|
+
<li><a href="../Nucleon/Plugin.html">Nucleon::Plugin</a>
|
170
|
+
|
171
|
+
<li><a href="../Nucleon/Plugin/Action.html">Nucleon::Plugin::Action</a>
|
172
|
+
|
173
|
+
<li><a href="../Nucleon/Plugin/Action/Option.html">Nucleon::Plugin::Action::Option</a>
|
174
|
+
|
175
|
+
<li><a href="../Nucleon/Plugin/Base.html">Nucleon::Plugin::Base</a>
|
176
|
+
|
177
|
+
<li><a href="../Nucleon/Plugin/Command.html">Nucleon::Plugin::Command</a>
|
178
|
+
|
179
|
+
<li><a href="../Nucleon/Plugin/Event.html">Nucleon::Plugin::Event</a>
|
180
|
+
|
181
|
+
<li><a href="../Nucleon/Plugin/Extension.html">Nucleon::Plugin::Extension</a>
|
182
|
+
|
183
|
+
<li><a href="../Nucleon/Plugin/Project.html">Nucleon::Plugin::Project</a>
|
184
|
+
|
185
|
+
<li><a href="../Nucleon/Plugin/Template.html">Nucleon::Plugin::Template</a>
|
186
|
+
|
187
|
+
<li><a href="../Nucleon/Plugin/Translator.html">Nucleon::Plugin::Translator</a>
|
188
|
+
|
189
|
+
<li><a href="../Nucleon/Project.html">Nucleon::Project</a>
|
190
|
+
|
191
|
+
<li><a href="../Nucleon/Project/Git.html">Nucleon::Project::Git</a>
|
192
|
+
|
193
|
+
<li><a href="../Nucleon/Project/Github.html">Nucleon::Project::Github</a>
|
194
|
+
|
195
|
+
<li><a href="../Nucleon/Template.html">Nucleon::Template</a>
|
196
|
+
|
197
|
+
<li><a href="../Nucleon/Template/Json.html">Nucleon::Template::Json</a>
|
198
|
+
|
199
|
+
<li><a href="../Nucleon/Template/Wrapper.html">Nucleon::Template::Wrapper</a>
|
200
|
+
|
201
|
+
<li><a href="../Nucleon/Template/Yaml.html">Nucleon::Template::Yaml</a>
|
202
|
+
|
203
|
+
<li><a href="../Nucleon/Translator.html">Nucleon::Translator</a>
|
204
|
+
|
205
|
+
<li><a href="../Nucleon/Translator/Json.html">Nucleon::Translator::Json</a>
|
206
|
+
|
207
|
+
<li><a href="../Nucleon/Translator/Yaml.html">Nucleon::Translator::Yaml</a>
|
208
|
+
|
209
|
+
<li><a href="../Nucleon/Util.html">Nucleon::Util</a>
|
210
|
+
|
211
|
+
<li><a href="../Nucleon/Util/CLI.html">Nucleon::Util::CLI</a>
|
212
|
+
|
213
|
+
<li><a href="../Nucleon/Util/CLI/Parser.html">Nucleon::Util::CLI::Parser</a>
|
214
|
+
|
215
|
+
<li><a href="../Nucleon/Util/Cache.html">Nucleon::Util::Cache</a>
|
216
|
+
|
217
|
+
<li><a href="../Nucleon/Util/Console.html">Nucleon::Util::Console</a>
|
218
|
+
|
219
|
+
<li><a href="../Nucleon/Util/Data.html">Nucleon::Util::Data</a>
|
220
|
+
|
221
|
+
<li><a href="../Nucleon/Util/Disk.html">Nucleon::Util::Disk</a>
|
222
|
+
|
223
|
+
<li><a href="../Nucleon/Util/Git.html">Nucleon::Util::Git</a>
|
224
|
+
|
225
|
+
<li><a href="../Nucleon/Util/Liquid.html">Nucleon::Util::Liquid</a>
|
226
|
+
|
227
|
+
<li><a href="../Nucleon/Util/Logger.html">Nucleon::Util::Logger</a>
|
228
|
+
|
229
|
+
<li><a href="../Nucleon/Util/Package.html">Nucleon::Util::Package</a>
|
230
|
+
|
231
|
+
<li><a href="../Nucleon/Util/SSH.html">Nucleon::Util::SSH</a>
|
232
|
+
|
233
|
+
<li><a href="../Nucleon/Util/SSH/Keypair.html">Nucleon::Util::SSH::Keypair</a>
|
234
|
+
|
235
|
+
<li><a href="../Nucleon/Util/Shell.html">Nucleon::Util::Shell</a>
|
236
|
+
|
237
|
+
<li><a href="../Nucleon/Util/Shell/Result.html">Nucleon::Util::Shell::Result</a>
|
238
|
+
|
239
|
+
<li><a href="../Hash.html">Hash</a>
|
240
|
+
|
241
|
+
<li><a href="../Kernel.html">Kernel</a>
|
242
|
+
|
243
|
+
</ul>
|
244
|
+
</nav>
|
245
|
+
|
246
|
+
</div>
|
247
|
+
</nav>
|
248
|
+
|
249
|
+
<div id="documentation">
|
250
|
+
<h1 class="module">module Nucleon::Action</h1>
|
251
|
+
|
252
|
+
<div id="description" class="description">
|
253
|
+
|
254
|
+
</div><!-- description -->
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
<!-- Methods -->
|
269
|
+
|
270
|
+
</section><!-- 5Buntitled-5D -->
|
271
|
+
|
272
|
+
</div><!-- documentation -->
|
273
|
+
|
274
|
+
|
275
|
+
<footer id="validator-badges">
|
276
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
277
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
|
278
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
279
|
+
</footer>
|
280
|
+
|
@@ -0,0 +1,458 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class Nucleon::Action::Add - nucleon 0.1.19</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/nucleon/action/add.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">Nucleon.plugin_class(:action)
|
63
|
+
|
64
|
+
</nav>
|
65
|
+
|
66
|
+
<!-- Included Modules -->
|
67
|
+
<nav id="includes-section" class="section">
|
68
|
+
<h3 class="section-header">Included Modules</h3>
|
69
|
+
|
70
|
+
<ul class="link-list">
|
71
|
+
|
72
|
+
|
73
|
+
<li><a class="include" href="../Mixin/Action/Project.html">Nucleon::Mixin::Action::Project</a>
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
<li><a class="include" href="../Mixin/Action/Push.html">Nucleon::Mixin::Action::Push</a>
|
78
|
+
|
79
|
+
|
80
|
+
</ul>
|
81
|
+
</nav>
|
82
|
+
|
83
|
+
<!-- Method Quickref -->
|
84
|
+
<nav id="method-list-section" class="section">
|
85
|
+
<h3 class="section-header">Methods</h3>
|
86
|
+
|
87
|
+
<ul class="link-list">
|
88
|
+
|
89
|
+
<li><a href="#method-i-arguments">#arguments</a>
|
90
|
+
|
91
|
+
<li><a href="#method-i-configure">#configure</a>
|
92
|
+
|
93
|
+
<li><a href="#method-i-execute">#execute</a>
|
94
|
+
|
95
|
+
</ul>
|
96
|
+
</nav>
|
97
|
+
|
98
|
+
</div>
|
99
|
+
|
100
|
+
<div id="project-metadata">
|
101
|
+
<nav id="fileindex-section" class="section project-section">
|
102
|
+
<h3 class="section-header">Pages</h3>
|
103
|
+
|
104
|
+
<ul>
|
105
|
+
|
106
|
+
<li class="file"><a href="../../ARCHITECTURE_rdoc.html">ARCHITECTURE</a>
|
107
|
+
|
108
|
+
<li class="file"><a href="../../README_rdoc.html">README</a>
|
109
|
+
|
110
|
+
<li class="file"><a href="../../TODO_rdoc.html">TODO</a>
|
111
|
+
|
112
|
+
</ul>
|
113
|
+
</nav>
|
114
|
+
|
115
|
+
<nav id="classindex-section" class="section project-section">
|
116
|
+
<h3 class="section-header">Class and Module Index</h3>
|
117
|
+
|
118
|
+
<ul class="link-list">
|
119
|
+
|
120
|
+
<li><a href="../../Nucleon.html">Nucleon</a>
|
121
|
+
|
122
|
+
<li><a href="../../Nucleon/Action.html">Nucleon::Action</a>
|
123
|
+
|
124
|
+
<li><a href="../../Nucleon/Action/Add.html">Nucleon::Action::Add</a>
|
125
|
+
|
126
|
+
<li><a href="../../Nucleon/Action/Create.html">Nucleon::Action::Create</a>
|
127
|
+
|
128
|
+
<li><a href="../../Nucleon/Action/Extract.html">Nucleon::Action::Extract</a>
|
129
|
+
|
130
|
+
<li><a href="../../Nucleon/Action/Remove.html">Nucleon::Action::Remove</a>
|
131
|
+
|
132
|
+
<li><a href="../../Nucleon/Action/Save.html">Nucleon::Action::Save</a>
|
133
|
+
|
134
|
+
<li><a href="../../Nucleon/Action/Update.html">Nucleon::Action::Update</a>
|
135
|
+
|
136
|
+
<li><a href="../../Nucleon/Codes.html">Nucleon::Codes</a>
|
137
|
+
|
138
|
+
<li><a href="../../Nucleon/Command.html">Nucleon::Command</a>
|
139
|
+
|
140
|
+
<li><a href="../../Nucleon/Command/Bash.html">Nucleon::Command::Bash</a>
|
141
|
+
|
142
|
+
<li><a href="../../Nucleon/Config.html">Nucleon::Config</a>
|
143
|
+
|
144
|
+
<li><a href="../../Nucleon/Config/Collection.html">Nucleon::Config::Collection</a>
|
145
|
+
|
146
|
+
<li><a href="../../Nucleon/Config/Options.html">Nucleon::Config::Options</a>
|
147
|
+
|
148
|
+
<li><a href="../../Nucleon/Core.html">Nucleon::Core</a>
|
149
|
+
|
150
|
+
<li><a href="../../Nucleon/Errors.html">Nucleon::Errors</a>
|
151
|
+
|
152
|
+
<li><a href="../../Nucleon/Errors/BatchError.html">Nucleon::Errors::BatchError</a>
|
153
|
+
|
154
|
+
<li><a href="../../Nucleon/Errors/NucleonError.html">Nucleon::Errors::NucleonError</a>
|
155
|
+
|
156
|
+
<li><a href="../../Nucleon/Errors/SSHUnavailable.html">Nucleon::Errors::SSHUnavailable</a>
|
157
|
+
|
158
|
+
<li><a href="../../Nucleon/Event.html">Nucleon::Event</a>
|
159
|
+
|
160
|
+
<li><a href="../../Nucleon/Event/Regex.html">Nucleon::Event::Regex</a>
|
161
|
+
|
162
|
+
<li><a href="../../Nucleon/Facade.html">Nucleon::Facade</a>
|
163
|
+
|
164
|
+
<li><a href="../../Nucleon/Gems.html">Nucleon::Gems</a>
|
165
|
+
|
166
|
+
<li><a href="../../Nucleon/Manager.html">Nucleon::Manager</a>
|
167
|
+
|
168
|
+
<li><a href="../../Nucleon/Mixin.html">Nucleon::Mixin</a>
|
169
|
+
|
170
|
+
<li><a href="../../Nucleon/Mixin/Action.html">Nucleon::Mixin::Action</a>
|
171
|
+
|
172
|
+
<li><a href="../../Nucleon/Mixin/Action/Commit.html">Nucleon::Mixin::Action::Commit</a>
|
173
|
+
|
174
|
+
<li><a href="../../Nucleon/Mixin/Action/Project.html">Nucleon::Mixin::Action::Project</a>
|
175
|
+
|
176
|
+
<li><a href="../../Nucleon/Mixin/Action/Push.html">Nucleon::Mixin::Action::Push</a>
|
177
|
+
|
178
|
+
<li><a href="../../Nucleon/Mixin/Colors.html">Nucleon::Mixin::Colors</a>
|
179
|
+
|
180
|
+
<li><a href="../../Nucleon/Mixin/ConfigCollection.html">Nucleon::Mixin::ConfigCollection</a>
|
181
|
+
|
182
|
+
<li><a href="../../Nucleon/Mixin/ConfigOptions.html">Nucleon::Mixin::ConfigOptions</a>
|
183
|
+
|
184
|
+
<li><a href="../../Nucleon/Mixin/Macro.html">Nucleon::Mixin::Macro</a>
|
185
|
+
|
186
|
+
<li><a href="../../Nucleon/Mixin/Macro/ObjectInterface.html">Nucleon::Mixin::Macro::ObjectInterface</a>
|
187
|
+
|
188
|
+
<li><a href="../../Nucleon/Mixin/Macro/PluginInterface.html">Nucleon::Mixin::Macro::PluginInterface</a>
|
189
|
+
|
190
|
+
<li><a href="../../Nucleon/Mixin/Settings.html">Nucleon::Mixin::Settings</a>
|
191
|
+
|
192
|
+
<li><a href="../../Nucleon/Mixin/SubConfig.html">Nucleon::Mixin::SubConfig</a>
|
193
|
+
|
194
|
+
<li><a href="../../Nucleon/Parallel.html">Nucleon::Parallel</a>
|
195
|
+
|
196
|
+
<li><a href="../../Nucleon/Parallel/ClassMethods.html">Nucleon::Parallel::ClassMethods</a>
|
197
|
+
|
198
|
+
<li><a href="../../Nucleon/Parallel/InstanceMethods.html">Nucleon::Parallel::InstanceMethods</a>
|
199
|
+
|
200
|
+
<li><a href="../../Nucleon/Plugin.html">Nucleon::Plugin</a>
|
201
|
+
|
202
|
+
<li><a href="../../Nucleon/Plugin/Action.html">Nucleon::Plugin::Action</a>
|
203
|
+
|
204
|
+
<li><a href="../../Nucleon/Plugin/Action/Option.html">Nucleon::Plugin::Action::Option</a>
|
205
|
+
|
206
|
+
<li><a href="../../Nucleon/Plugin/Base.html">Nucleon::Plugin::Base</a>
|
207
|
+
|
208
|
+
<li><a href="../../Nucleon/Plugin/Command.html">Nucleon::Plugin::Command</a>
|
209
|
+
|
210
|
+
<li><a href="../../Nucleon/Plugin/Event.html">Nucleon::Plugin::Event</a>
|
211
|
+
|
212
|
+
<li><a href="../../Nucleon/Plugin/Extension.html">Nucleon::Plugin::Extension</a>
|
213
|
+
|
214
|
+
<li><a href="../../Nucleon/Plugin/Project.html">Nucleon::Plugin::Project</a>
|
215
|
+
|
216
|
+
<li><a href="../../Nucleon/Plugin/Template.html">Nucleon::Plugin::Template</a>
|
217
|
+
|
218
|
+
<li><a href="../../Nucleon/Plugin/Translator.html">Nucleon::Plugin::Translator</a>
|
219
|
+
|
220
|
+
<li><a href="../../Nucleon/Project.html">Nucleon::Project</a>
|
221
|
+
|
222
|
+
<li><a href="../../Nucleon/Project/Git.html">Nucleon::Project::Git</a>
|
223
|
+
|
224
|
+
<li><a href="../../Nucleon/Project/Github.html">Nucleon::Project::Github</a>
|
225
|
+
|
226
|
+
<li><a href="../../Nucleon/Template.html">Nucleon::Template</a>
|
227
|
+
|
228
|
+
<li><a href="../../Nucleon/Template/Json.html">Nucleon::Template::Json</a>
|
229
|
+
|
230
|
+
<li><a href="../../Nucleon/Template/Wrapper.html">Nucleon::Template::Wrapper</a>
|
231
|
+
|
232
|
+
<li><a href="../../Nucleon/Template/Yaml.html">Nucleon::Template::Yaml</a>
|
233
|
+
|
234
|
+
<li><a href="../../Nucleon/Translator.html">Nucleon::Translator</a>
|
235
|
+
|
236
|
+
<li><a href="../../Nucleon/Translator/Json.html">Nucleon::Translator::Json</a>
|
237
|
+
|
238
|
+
<li><a href="../../Nucleon/Translator/Yaml.html">Nucleon::Translator::Yaml</a>
|
239
|
+
|
240
|
+
<li><a href="../../Nucleon/Util.html">Nucleon::Util</a>
|
241
|
+
|
242
|
+
<li><a href="../../Nucleon/Util/CLI.html">Nucleon::Util::CLI</a>
|
243
|
+
|
244
|
+
<li><a href="../../Nucleon/Util/CLI/Parser.html">Nucleon::Util::CLI::Parser</a>
|
245
|
+
|
246
|
+
<li><a href="../../Nucleon/Util/Cache.html">Nucleon::Util::Cache</a>
|
247
|
+
|
248
|
+
<li><a href="../../Nucleon/Util/Console.html">Nucleon::Util::Console</a>
|
249
|
+
|
250
|
+
<li><a href="../../Nucleon/Util/Data.html">Nucleon::Util::Data</a>
|
251
|
+
|
252
|
+
<li><a href="../../Nucleon/Util/Disk.html">Nucleon::Util::Disk</a>
|
253
|
+
|
254
|
+
<li><a href="../../Nucleon/Util/Git.html">Nucleon::Util::Git</a>
|
255
|
+
|
256
|
+
<li><a href="../../Nucleon/Util/Liquid.html">Nucleon::Util::Liquid</a>
|
257
|
+
|
258
|
+
<li><a href="../../Nucleon/Util/Logger.html">Nucleon::Util::Logger</a>
|
259
|
+
|
260
|
+
<li><a href="../../Nucleon/Util/Package.html">Nucleon::Util::Package</a>
|
261
|
+
|
262
|
+
<li><a href="../../Nucleon/Util/SSH.html">Nucleon::Util::SSH</a>
|
263
|
+
|
264
|
+
<li><a href="../../Nucleon/Util/SSH/Keypair.html">Nucleon::Util::SSH::Keypair</a>
|
265
|
+
|
266
|
+
<li><a href="../../Nucleon/Util/Shell.html">Nucleon::Util::Shell</a>
|
267
|
+
|
268
|
+
<li><a href="../../Nucleon/Util/Shell/Result.html">Nucleon::Util::Shell::Result</a>
|
269
|
+
|
270
|
+
<li><a href="../../Hash.html">Hash</a>
|
271
|
+
|
272
|
+
<li><a href="../../Kernel.html">Kernel</a>
|
273
|
+
|
274
|
+
</ul>
|
275
|
+
</nav>
|
276
|
+
|
277
|
+
</div>
|
278
|
+
</nav>
|
279
|
+
|
280
|
+
<div id="documentation">
|
281
|
+
<h1 class="class">class Nucleon::Action::Add</h1>
|
282
|
+
|
283
|
+
<div id="description" class="description">
|
284
|
+
|
285
|
+
</div><!-- description -->
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
<!-- Methods -->
|
300
|
+
|
301
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
302
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
303
|
+
|
304
|
+
|
305
|
+
<div id="method-i-arguments" class="method-detail ">
|
306
|
+
|
307
|
+
<div class="method-heading">
|
308
|
+
<span class="method-name">arguments</span><span
|
309
|
+
class="method-args">()</span>
|
310
|
+
<span class="method-click-advice">click to toggle source</span>
|
311
|
+
</div>
|
312
|
+
|
313
|
+
|
314
|
+
<div class="method-description">
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
<div class="method-source-code" id="arguments-source">
|
321
|
+
<pre><span class="ruby-comment"># File lib/nucleon/action/add.rb, line 46</span>
|
322
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">arguments</span>
|
323
|
+
[ <span class="ruby-value">:sub_path</span>, <span class="ruby-value">:sub_reference</span> ]
|
324
|
+
<span class="ruby-keyword">end</span></pre>
|
325
|
+
</div><!-- arguments-source -->
|
326
|
+
|
327
|
+
</div>
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
|
332
|
+
</div><!-- arguments-method -->
|
333
|
+
|
334
|
+
|
335
|
+
<div id="method-i-configure" class="method-detail ">
|
336
|
+
|
337
|
+
<div class="method-heading">
|
338
|
+
<span class="method-name">configure</span><span
|
339
|
+
class="method-args">()</span>
|
340
|
+
<span class="method-click-advice">click to toggle source</span>
|
341
|
+
</div>
|
342
|
+
|
343
|
+
|
344
|
+
<div class="method-description">
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
<div class="method-source-code" id="configure-source">
|
351
|
+
<pre><span class="ruby-comment"># File lib/nucleon/action/add.rb, line 12</span>
|
352
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">configure</span>
|
353
|
+
<span class="ruby-keyword">super</span> <span class="ruby-keyword">do</span>
|
354
|
+
<span class="ruby-identifier">codes</span> <span class="ruby-value">:project_failure</span>,
|
355
|
+
<span class="ruby-value">:add_failure</span>,
|
356
|
+
<span class="ruby-value">:push_failure</span>
|
357
|
+
|
358
|
+
<span class="ruby-identifier">register</span> <span class="ruby-value">:path</span>, <span class="ruby-value">:str</span>, <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">pwd</span>
|
359
|
+
|
360
|
+
<span class="ruby-identifier">register</span> <span class="ruby-value">:sub_path</span>, <span class="ruby-value">:str</span>, <span class="ruby-keyword">nil</span>
|
361
|
+
<span class="ruby-identifier">register</span> <span class="ruby-value">:sub_reference</span>, <span class="ruby-value">:str</span>, <span class="ruby-keyword">nil</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
|
362
|
+
<span class="ruby-identifier">success</span> = <span class="ruby-keyword">true</span>
|
363
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">info</span> = <span class="ruby-constant">Nucleon</span>.<span class="ruby-identifier">plugin_class</span>(<span class="ruby-value">:project</span>).<span class="ruby-identifier">translate_reference</span>(<span class="ruby-identifier">value</span>)
|
364
|
+
<span class="ruby-keyword">if</span> <span class="ruby-operator">!</span> <span class="ruby-constant">Nucleon</span>.<span class="ruby-identifier">loaded_plugins</span>(<span class="ruby-value">:project</span>).<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">info</span>[<span class="ruby-value">:provider</span>].<span class="ruby-identifier">to_sym</span>)
|
365
|
+
<span class="ruby-identifier">warn</span>(<span class="ruby-string">'nucleon.core.mixin.action.project.errors.project_reference'</span>, {
|
366
|
+
<span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">value</span>,
|
367
|
+
<span class="ruby-value">:provider</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">info</span>[<span class="ruby-value">:provider</span>],
|
368
|
+
<span class="ruby-value">:reference</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">info</span>[<span class="ruby-value">:reference</span>],
|
369
|
+
<span class="ruby-value">:url</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">info</span>[<span class="ruby-value">:url</span>],
|
370
|
+
<span class="ruby-value">:revision</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">info</span>[<span class="ruby-value">:revision</span>]
|
371
|
+
})
|
372
|
+
<span class="ruby-identifier">success</span> = <span class="ruby-keyword">false</span>
|
373
|
+
<span class="ruby-keyword">end</span>
|
374
|
+
<span class="ruby-keyword">end</span>
|
375
|
+
<span class="ruby-identifier">success</span>
|
376
|
+
<span class="ruby-keyword">end</span>
|
377
|
+
<span class="ruby-identifier">register</span> <span class="ruby-value">:editable</span>, <span class="ruby-value">:bool</span>, <span class="ruby-keyword">false</span>
|
378
|
+
|
379
|
+
<span class="ruby-identifier">project_config</span>
|
380
|
+
<span class="ruby-identifier">push_config</span>
|
381
|
+
<span class="ruby-keyword">end</span>
|
382
|
+
<span class="ruby-keyword">end</span></pre>
|
383
|
+
</div><!-- configure-source -->
|
384
|
+
|
385
|
+
</div>
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
</div><!-- configure-method -->
|
391
|
+
|
392
|
+
|
393
|
+
<div id="method-i-execute" class="method-detail ">
|
394
|
+
|
395
|
+
<div class="method-heading">
|
396
|
+
<span class="method-name">execute</span><span
|
397
|
+
class="method-args">()</span>
|
398
|
+
<span class="method-click-advice">click to toggle source</span>
|
399
|
+
</div>
|
400
|
+
|
401
|
+
|
402
|
+
<div class="method-description">
|
403
|
+
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
<div class="method-source-code" id="execute-source">
|
409
|
+
<pre><span class="ruby-comment"># File lib/nucleon/action/add.rb, line 53</span>
|
410
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">execute</span>
|
411
|
+
<span class="ruby-keyword">super</span> <span class="ruby-keyword">do</span>
|
412
|
+
<span class="ruby-identifier">info</span>(<span class="ruby-string">'nucleon.actions.add.start'</span>)
|
413
|
+
|
414
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">project</span> = <span class="ruby-identifier">project_load</span>(<span class="ruby-identifier">settings</span>[<span class="ruby-value">:path</span>], <span class="ruby-keyword">false</span>)
|
415
|
+
<span class="ruby-identifier">sub_info</span> = <span class="ruby-identifier">project</span>.<span class="ruby-identifier">translate_reference</span>(<span class="ruby-identifier">settings</span>[<span class="ruby-value">:sub_reference</span>], <span class="ruby-identifier">settings</span>[<span class="ruby-value">:editable</span>])
|
416
|
+
<span class="ruby-identifier">sub_path</span> = <span class="ruby-identifier">settings</span>[<span class="ruby-value">:sub_path</span>]
|
417
|
+
|
418
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">sub_info</span>
|
419
|
+
<span class="ruby-identifier">sub_url</span> = <span class="ruby-identifier">sub_info</span>[<span class="ruby-value">:url</span>]
|
420
|
+
<span class="ruby-identifier">sub_revision</span> = <span class="ruby-identifier">sub_info</span>[<span class="ruby-value">:revision</span>]
|
421
|
+
<span class="ruby-keyword">else</span>
|
422
|
+
<span class="ruby-identifier">sub_url</span> = <span class="ruby-identifier">settings</span>[<span class="ruby-value">:sub_reference</span>]
|
423
|
+
<span class="ruby-identifier">sub_revision</span> = <span class="ruby-keyword">nil</span>
|
424
|
+
<span class="ruby-keyword">end</span>
|
425
|
+
|
426
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">project</span>.<span class="ruby-identifier">add_subproject</span>(<span class="ruby-identifier">sub_path</span>, <span class="ruby-identifier">sub_url</span>, <span class="ruby-identifier">sub_revision</span>)
|
427
|
+
<span class="ruby-identifier">myself</span>.<span class="ruby-identifier">status</span> = <span class="ruby-identifier">code</span>.<span class="ruby-identifier">push_failure</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">push</span>(<span class="ruby-identifier">project</span>)
|
428
|
+
<span class="ruby-keyword">else</span>
|
429
|
+
<span class="ruby-identifier">myself</span>.<span class="ruby-identifier">status</span> = <span class="ruby-identifier">code</span>.<span class="ruby-identifier">add_failure</span>
|
430
|
+
<span class="ruby-keyword">end</span>
|
431
|
+
<span class="ruby-keyword">else</span>
|
432
|
+
<span class="ruby-identifier">myself</span>.<span class="ruby-identifier">status</span> = <span class="ruby-identifier">code</span>.<span class="ruby-identifier">project_failure</span>
|
433
|
+
<span class="ruby-keyword">end</span>
|
434
|
+
<span class="ruby-keyword">end</span>
|
435
|
+
<span class="ruby-keyword">end</span></pre>
|
436
|
+
</div><!-- execute-source -->
|
437
|
+
|
438
|
+
</div>
|
439
|
+
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
</div><!-- execute-method -->
|
444
|
+
|
445
|
+
|
446
|
+
</section><!-- public-instance-method-details -->
|
447
|
+
|
448
|
+
</section><!-- 5Buntitled-5D -->
|
449
|
+
|
450
|
+
</div><!-- documentation -->
|
451
|
+
|
452
|
+
|
453
|
+
<footer id="validator-badges">
|
454
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
455
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
|
456
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
457
|
+
</footer>
|
458
|
+
|