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.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/core/config.rb +1 -1
  4. data/lib/core/core.rb +2 -2
  5. data/lib/core/environment.rb +9 -6
  6. data/lib/core/facade.rb +2 -2
  7. data/lib/core/gems.rb +13 -6
  8. data/lib/core/manager.rb +12 -5
  9. data/lib/core/mixin/action/commit.rb +12 -6
  10. data/lib/core/mixin/action/project.rb +15 -28
  11. data/lib/core/mixin/action/push.rb +14 -5
  12. data/lib/core/mixin/action/registration.rb +277 -28
  13. data/lib/core/mixin/macro/object_interface.rb +3 -3
  14. data/lib/core/mixin/sub_config.rb +1 -1
  15. data/lib/core/plugin/action.rb +20 -51
  16. data/lib/core/plugin/base.rb +41 -8
  17. data/lib/core/plugin/project.rb +55 -8
  18. data/lib/nucleon/action/project/add.rb +6 -20
  19. data/lib/nucleon/action/project/create.rb +2 -2
  20. data/lib/nucleon/action/project/remove.rb +3 -3
  21. data/lib/nucleon/action/project/save.rb +3 -3
  22. data/lib/nucleon/action/project/update.rb +2 -2
  23. data/lib/nucleon/extension/project.rb +16 -0
  24. data/lib/nucleon/project/git.rb +1 -0
  25. data/lib/nucleon/project/github.rb +19 -7
  26. data/nucleon.gemspec +120 -2
  27. data/rdoc/site/0.2.1/ARCHITECTURE_rdoc.html +640 -0
  28. data/rdoc/site/0.2.1/Hash.html +353 -0
  29. data/rdoc/site/0.2.1/Kernel.html +420 -0
  30. data/rdoc/site/0.2.1/Nucleon.html +674 -0
  31. data/rdoc/site/0.2.1/Nucleon/Action.html +286 -0
  32. data/rdoc/site/0.2.1/Nucleon/Action/Extract.html +457 -0
  33. data/rdoc/site/0.2.1/Nucleon/Action/Project.html +285 -0
  34. data/rdoc/site/0.2.1/Nucleon/Action/Project/Add.html +502 -0
  35. data/rdoc/site/0.2.1/Nucleon/Action/Project/Create.html +459 -0
  36. data/rdoc/site/0.2.1/Nucleon/Action/Project/Remove.html +505 -0
  37. data/rdoc/site/0.2.1/Nucleon/Action/Project/Save.html +478 -0
  38. data/rdoc/site/0.2.1/Nucleon/Action/Project/Update.html +425 -0
  39. data/rdoc/site/0.2.1/Nucleon/Codes.html +569 -0
  40. data/rdoc/site/0.2.1/Nucleon/Command.html +281 -0
  41. data/rdoc/site/0.2.1/Nucleon/Command/Bash.html +550 -0
  42. data/rdoc/site/0.2.1/Nucleon/Config.html +1634 -0
  43. data/rdoc/site/0.2.1/Nucleon/Config/Collection.html +515 -0
  44. data/rdoc/site/0.2.1/Nucleon/Config/Options.html +495 -0
  45. data/rdoc/site/0.2.1/Nucleon/Core.html +641 -0
  46. data/rdoc/site/0.2.1/Nucleon/Environment.html +1210 -0
  47. data/rdoc/site/0.2.1/Nucleon/Errors.html +281 -0
  48. data/rdoc/site/0.2.1/Nucleon/Errors/BatchError.html +287 -0
  49. data/rdoc/site/0.2.1/Nucleon/Errors/NucleonError.html +663 -0
  50. data/rdoc/site/0.2.1/Nucleon/Errors/SSHUnavailable.html +287 -0
  51. data/rdoc/site/0.2.1/Nucleon/Event.html +281 -0
  52. data/rdoc/site/0.2.1/Nucleon/Event/Regex.html +473 -0
  53. data/rdoc/site/0.2.1/Nucleon/Facade.html +2452 -0
  54. data/rdoc/site/0.2.1/Nucleon/Gems.html +641 -0
  55. data/rdoc/site/0.2.1/Nucleon/Manager.html +1862 -0
  56. data/rdoc/site/0.2.1/Nucleon/Mixin.html +291 -0
  57. data/rdoc/site/0.2.1/Nucleon/Mixin/Action.html +284 -0
  58. data/rdoc/site/0.2.1/Nucleon/Mixin/Action/Commit.html +387 -0
  59. data/rdoc/site/0.2.1/Nucleon/Mixin/Action/Project.html +401 -0
  60. data/rdoc/site/0.2.1/Nucleon/Mixin/Action/Push.html +377 -0
  61. data/rdoc/site/0.2.1/Nucleon/Mixin/Action/Registration.html +575 -0
  62. data/rdoc/site/0.2.1/Nucleon/Mixin/Colors.html +551 -0
  63. data/rdoc/site/0.2.1/Nucleon/Mixin/ConfigCollection.html +487 -0
  64. data/rdoc/site/0.2.1/Nucleon/Mixin/ConfigOptions.html +455 -0
  65. data/rdoc/site/0.2.1/Nucleon/Mixin/Macro.html +282 -0
  66. data/rdoc/site/0.2.1/Nucleon/Mixin/Macro/ObjectInterface.html +701 -0
  67. data/rdoc/site/0.2.1/Nucleon/Mixin/Macro/PluginInterface.html +688 -0
  68. data/rdoc/site/0.2.1/Nucleon/Mixin/Settings.html +487 -0
  69. data/rdoc/site/0.2.1/Nucleon/Mixin/SubConfig.html +893 -0
  70. data/rdoc/site/0.2.1/Nucleon/Parallel.html +332 -0
  71. data/rdoc/site/0.2.1/Nucleon/Parallel/ClassMethods.html +331 -0
  72. data/rdoc/site/0.2.1/Nucleon/Parallel/InstanceMethods.html +458 -0
  73. data/rdoc/site/0.2.1/Nucleon/Plugin.html +288 -0
  74. data/rdoc/site/0.2.1/Nucleon/Plugin/Action.html +2133 -0
  75. data/rdoc/site/0.2.1/Nucleon/Plugin/Action/Option.html +465 -0
  76. data/rdoc/site/0.2.1/Nucleon/Plugin/Base.html +1988 -0
  77. data/rdoc/site/0.2.1/Nucleon/Plugin/Command.html +765 -0
  78. data/rdoc/site/0.2.1/Nucleon/Plugin/Event.html +448 -0
  79. data/rdoc/site/0.2.1/Nucleon/Plugin/Extension.html +287 -0
  80. data/rdoc/site/0.2.1/Nucleon/Plugin/Project.html +2900 -0
  81. data/rdoc/site/0.2.1/Nucleon/Plugin/Template.html +482 -0
  82. data/rdoc/site/0.2.1/Nucleon/Plugin/Translator.html +377 -0
  83. data/rdoc/site/0.2.1/Nucleon/Project.html +282 -0
  84. data/rdoc/site/0.2.1/Nucleon/Project/Git.html +1807 -0
  85. data/rdoc/site/0.2.1/Nucleon/Project/Github.html +555 -0
  86. data/rdoc/site/0.2.1/Nucleon/Template.html +283 -0
  87. data/rdoc/site/0.2.1/Nucleon/Template/JSON.html +335 -0
  88. data/rdoc/site/0.2.1/Nucleon/Template/Wrapper.html +335 -0
  89. data/rdoc/site/0.2.1/Nucleon/Template/YAML.html +335 -0
  90. data/rdoc/site/0.2.1/Nucleon/Translator.html +282 -0
  91. data/rdoc/site/0.2.1/Nucleon/Translator/JSON.html +372 -0
  92. data/rdoc/site/0.2.1/Nucleon/Translator/YAML.html +372 -0
  93. data/rdoc/site/0.2.1/Nucleon/Util.html +291 -0
  94. data/rdoc/site/0.2.1/Nucleon/Util/CLI.html +394 -0
  95. data/rdoc/site/0.2.1/Nucleon/Util/CLI/Parser.html +1404 -0
  96. data/rdoc/site/0.2.1/Nucleon/Util/Cache.html +824 -0
  97. data/rdoc/site/0.2.1/Nucleon/Util/Console.html +1330 -0
  98. data/rdoc/site/0.2.1/Nucleon/Util/Data.html +1423 -0
  99. data/rdoc/site/0.2.1/Nucleon/Util/Disk.html +528 -0
  100. data/rdoc/site/0.2.1/Nucleon/Util/Git.html +367 -0
  101. data/rdoc/site/0.2.1/Nucleon/Util/Liquid.html +371 -0
  102. data/rdoc/site/0.2.1/Nucleon/Util/Logger.html +822 -0
  103. data/rdoc/site/0.2.1/Nucleon/Util/Package.html +564 -0
  104. data/rdoc/site/0.2.1/Nucleon/Util/SSH.html +1036 -0
  105. data/rdoc/site/0.2.1/Nucleon/Util/SSH/Keypair.html +607 -0
  106. data/rdoc/site/0.2.1/Nucleon/Util/Shell.html +697 -0
  107. data/rdoc/site/0.2.1/Nucleon/Util/Shell/Result.html +503 -0
  108. data/rdoc/site/0.2.1/README_rdoc.html +318 -0
  109. data/rdoc/site/0.2.1/TODO_rdoc.html +267 -0
  110. data/rdoc/site/0.2.1/created.rid +62 -0
  111. data/rdoc/site/0.2.1/images/add.png +0 -0
  112. data/rdoc/site/0.2.1/images/brick.png +0 -0
  113. data/rdoc/site/0.2.1/images/brick_link.png +0 -0
  114. data/rdoc/site/0.2.1/images/bug.png +0 -0
  115. data/rdoc/site/0.2.1/images/bullet_black.png +0 -0
  116. data/rdoc/site/0.2.1/images/bullet_toggle_minus.png +0 -0
  117. data/rdoc/site/0.2.1/images/bullet_toggle_plus.png +0 -0
  118. data/rdoc/site/0.2.1/images/date.png +0 -0
  119. data/rdoc/site/0.2.1/images/delete.png +0 -0
  120. data/rdoc/site/0.2.1/images/find.png +0 -0
  121. data/rdoc/site/0.2.1/images/loadingAnimation.gif +0 -0
  122. data/rdoc/site/0.2.1/images/macFFBgHack.png +0 -0
  123. data/rdoc/site/0.2.1/images/package.png +0 -0
  124. data/rdoc/site/0.2.1/images/page_green.png +0 -0
  125. data/rdoc/site/0.2.1/images/page_white_text.png +0 -0
  126. data/rdoc/site/0.2.1/images/page_white_width.png +0 -0
  127. data/rdoc/site/0.2.1/images/plugin.png +0 -0
  128. data/rdoc/site/0.2.1/images/ruby.png +0 -0
  129. data/rdoc/site/0.2.1/images/tag_blue.png +0 -0
  130. data/rdoc/site/0.2.1/images/tag_green.png +0 -0
  131. data/rdoc/site/0.2.1/images/transparent.png +0 -0
  132. data/rdoc/site/0.2.1/images/wrench.png +0 -0
  133. data/rdoc/site/0.2.1/images/wrench_orange.png +0 -0
  134. data/rdoc/site/0.2.1/images/zoom.png +0 -0
  135. data/rdoc/site/0.2.1/index.html +317 -0
  136. data/rdoc/site/0.2.1/js/darkfish.js +155 -0
  137. data/rdoc/site/0.2.1/js/jquery.js +18 -0
  138. data/rdoc/site/0.2.1/js/navigation.js +142 -0
  139. data/rdoc/site/0.2.1/js/search.js +94 -0
  140. data/rdoc/site/0.2.1/js/search_index.js +1 -0
  141. data/rdoc/site/0.2.1/js/searcher.js +228 -0
  142. data/rdoc/site/0.2.1/rdoc.css +543 -0
  143. data/rdoc/site/0.2.1/table_of_contents.html +1718 -0
  144. metadata +120 -2
@@ -0,0 +1,663 @@
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::Errors::NucleonError - 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="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/errors.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">StandardError
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-c-error_key">::error_key</a>
74
+
75
+ <li><a href="#method-c-error_message">::error_message</a>
76
+
77
+ <li><a href="#method-c-error_namespace">::error_namespace</a>
78
+
79
+ <li><a href="#method-c-new">::new</a>
80
+
81
+ <li><a href="#method-c-status_code">::status_code</a>
82
+
83
+ <li><a href="#method-i-error_key">#error_key</a>
84
+
85
+ <li><a href="#method-i-error_message">#error_message</a>
86
+
87
+ <li><a href="#method-i-error_namespace">#error_namespace</a>
88
+
89
+ <li><a href="#method-i-status_code">#status_code</a>
90
+
91
+ <li><a href="#method-i-translate_error">#translate_error</a>
92
+
93
+ </ul>
94
+ </nav>
95
+
96
+ </div>
97
+
98
+ <div id="project-metadata">
99
+ <nav id="fileindex-section" class="section project-section">
100
+ <h3 class="section-header">Pages</h3>
101
+
102
+ <ul>
103
+
104
+ <li class="file"><a href="../../ARCHITECTURE_rdoc.html">ARCHITECTURE</a>
105
+
106
+ <li class="file"><a href="../../README_rdoc.html">README</a>
107
+
108
+ <li class="file"><a href="../../TODO_rdoc.html">TODO</a>
109
+
110
+ </ul>
111
+ </nav>
112
+
113
+ <nav id="classindex-section" class="section project-section">
114
+ <h3 class="section-header">Class and Module Index</h3>
115
+
116
+ <ul class="link-list">
117
+
118
+ <li><a href="../../Nucleon.html">Nucleon</a>
119
+
120
+ <li><a href="../../Nucleon/Action.html">Nucleon::Action</a>
121
+
122
+ <li><a href="../../Nucleon/Action/Extract.html">Nucleon::Action::Extract</a>
123
+
124
+ <li><a href="../../Nucleon/Action/Project.html">Nucleon::Action::Project</a>
125
+
126
+ <li><a href="../../Nucleon/Action/Project/Add.html">Nucleon::Action::Project::Add</a>
127
+
128
+ <li><a href="../../Nucleon/Action/Project/Create.html">Nucleon::Action::Project::Create</a>
129
+
130
+ <li><a href="../../Nucleon/Action/Project/Remove.html">Nucleon::Action::Project::Remove</a>
131
+
132
+ <li><a href="../../Nucleon/Action/Project/Save.html">Nucleon::Action::Project::Save</a>
133
+
134
+ <li><a href="../../Nucleon/Action/Project/Update.html">Nucleon::Action::Project::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/Environment.html">Nucleon::Environment</a>
151
+
152
+ <li><a href="../../Nucleon/Errors.html">Nucleon::Errors</a>
153
+
154
+ <li><a href="../../Nucleon/Errors/BatchError.html">Nucleon::Errors::BatchError</a>
155
+
156
+ <li><a href="../../Nucleon/Errors/NucleonError.html">Nucleon::Errors::NucleonError</a>
157
+
158
+ <li><a href="../../Nucleon/Errors/SSHUnavailable.html">Nucleon::Errors::SSHUnavailable</a>
159
+
160
+ <li><a href="../../Nucleon/Event.html">Nucleon::Event</a>
161
+
162
+ <li><a href="../../Nucleon/Event/Regex.html">Nucleon::Event::Regex</a>
163
+
164
+ <li><a href="../../Nucleon/Facade.html">Nucleon::Facade</a>
165
+
166
+ <li><a href="../../Nucleon/Gems.html">Nucleon::Gems</a>
167
+
168
+ <li><a href="../../Nucleon/Manager.html">Nucleon::Manager</a>
169
+
170
+ <li><a href="../../Nucleon/Mixin.html">Nucleon::Mixin</a>
171
+
172
+ <li><a href="../../Nucleon/Mixin/Action.html">Nucleon::Mixin::Action</a>
173
+
174
+ <li><a href="../../Nucleon/Mixin/Action/Commit.html">Nucleon::Mixin::Action::Commit</a>
175
+
176
+ <li><a href="../../Nucleon/Mixin/Action/Project.html">Nucleon::Mixin::Action::Project</a>
177
+
178
+ <li><a href="../../Nucleon/Mixin/Action/Push.html">Nucleon::Mixin::Action::Push</a>
179
+
180
+ <li><a href="../../Nucleon/Mixin/Action/Registration.html">Nucleon::Mixin::Action::Registration</a>
181
+
182
+ <li><a href="../../Nucleon/Mixin/Colors.html">Nucleon::Mixin::Colors</a>
183
+
184
+ <li><a href="../../Nucleon/Mixin/ConfigCollection.html">Nucleon::Mixin::ConfigCollection</a>
185
+
186
+ <li><a href="../../Nucleon/Mixin/ConfigOptions.html">Nucleon::Mixin::ConfigOptions</a>
187
+
188
+ <li><a href="../../Nucleon/Mixin/Macro.html">Nucleon::Mixin::Macro</a>
189
+
190
+ <li><a href="../../Nucleon/Mixin/Macro/ObjectInterface.html">Nucleon::Mixin::Macro::ObjectInterface</a>
191
+
192
+ <li><a href="../../Nucleon/Mixin/Macro/PluginInterface.html">Nucleon::Mixin::Macro::PluginInterface</a>
193
+
194
+ <li><a href="../../Nucleon/Mixin/Settings.html">Nucleon::Mixin::Settings</a>
195
+
196
+ <li><a href="../../Nucleon/Mixin/SubConfig.html">Nucleon::Mixin::SubConfig</a>
197
+
198
+ <li><a href="../../Nucleon/Parallel.html">Nucleon::Parallel</a>
199
+
200
+ <li><a href="../../Nucleon/Parallel/ClassMethods.html">Nucleon::Parallel::ClassMethods</a>
201
+
202
+ <li><a href="../../Nucleon/Parallel/InstanceMethods.html">Nucleon::Parallel::InstanceMethods</a>
203
+
204
+ <li><a href="../../Nucleon/Plugin.html">Nucleon::Plugin</a>
205
+
206
+ <li><a href="../../Nucleon/Plugin/Action.html">Nucleon::Plugin::Action</a>
207
+
208
+ <li><a href="../../Nucleon/Plugin/Action/Option.html">Nucleon::Plugin::Action::Option</a>
209
+
210
+ <li><a href="../../Nucleon/Plugin/Base.html">Nucleon::Plugin::Base</a>
211
+
212
+ <li><a href="../../Nucleon/Plugin/Command.html">Nucleon::Plugin::Command</a>
213
+
214
+ <li><a href="../../Nucleon/Plugin/Event.html">Nucleon::Plugin::Event</a>
215
+
216
+ <li><a href="../../Nucleon/Plugin/Extension.html">Nucleon::Plugin::Extension</a>
217
+
218
+ <li><a href="../../Nucleon/Plugin/Project.html">Nucleon::Plugin::Project</a>
219
+
220
+ <li><a href="../../Nucleon/Plugin/Template.html">Nucleon::Plugin::Template</a>
221
+
222
+ <li><a href="../../Nucleon/Plugin/Translator.html">Nucleon::Plugin::Translator</a>
223
+
224
+ <li><a href="../../Nucleon/Project.html">Nucleon::Project</a>
225
+
226
+ <li><a href="../../Nucleon/Project/Git.html">Nucleon::Project::Git</a>
227
+
228
+ <li><a href="../../Nucleon/Project/Github.html">Nucleon::Project::Github</a>
229
+
230
+ <li><a href="../../Nucleon/Template.html">Nucleon::Template</a>
231
+
232
+ <li><a href="../../Nucleon/Template/JSON.html">Nucleon::Template::JSON</a>
233
+
234
+ <li><a href="../../Nucleon/Template/Wrapper.html">Nucleon::Template::Wrapper</a>
235
+
236
+ <li><a href="../../Nucleon/Template/YAML.html">Nucleon::Template::YAML</a>
237
+
238
+ <li><a href="../../Nucleon/Translator.html">Nucleon::Translator</a>
239
+
240
+ <li><a href="../../Nucleon/Translator/JSON.html">Nucleon::Translator::JSON</a>
241
+
242
+ <li><a href="../../Nucleon/Translator/YAML.html">Nucleon::Translator::YAML</a>
243
+
244
+ <li><a href="../../Nucleon/Util.html">Nucleon::Util</a>
245
+
246
+ <li><a href="../../Nucleon/Util/CLI.html">Nucleon::Util::CLI</a>
247
+
248
+ <li><a href="../../Nucleon/Util/CLI/Parser.html">Nucleon::Util::CLI::Parser</a>
249
+
250
+ <li><a href="../../Nucleon/Util/Cache.html">Nucleon::Util::Cache</a>
251
+
252
+ <li><a href="../../Nucleon/Util/Console.html">Nucleon::Util::Console</a>
253
+
254
+ <li><a href="../../Nucleon/Util/Data.html">Nucleon::Util::Data</a>
255
+
256
+ <li><a href="../../Nucleon/Util/Disk.html">Nucleon::Util::Disk</a>
257
+
258
+ <li><a href="../../Nucleon/Util/Git.html">Nucleon::Util::Git</a>
259
+
260
+ <li><a href="../../Nucleon/Util/Liquid.html">Nucleon::Util::Liquid</a>
261
+
262
+ <li><a href="../../Nucleon/Util/Logger.html">Nucleon::Util::Logger</a>
263
+
264
+ <li><a href="../../Nucleon/Util/Package.html">Nucleon::Util::Package</a>
265
+
266
+ <li><a href="../../Nucleon/Util/SSH.html">Nucleon::Util::SSH</a>
267
+
268
+ <li><a href="../../Nucleon/Util/SSH/Keypair.html">Nucleon::Util::SSH::Keypair</a>
269
+
270
+ <li><a href="../../Nucleon/Util/Shell.html">Nucleon::Util::Shell</a>
271
+
272
+ <li><a href="../../Nucleon/Util/Shell/Result.html">Nucleon::Util::Shell::Result</a>
273
+
274
+ <li><a href="../../Hash.html">Hash</a>
275
+
276
+ <li><a href="../../Kernel.html">Kernel</a>
277
+
278
+ </ul>
279
+ </nav>
280
+
281
+ </div>
282
+ </nav>
283
+
284
+ <div id="documentation">
285
+ <h1 class="class">class Nucleon::Errors::NucleonError</h1>
286
+
287
+ <div id="description" class="description">
288
+
289
+ </div><!-- description -->
290
+
291
+
292
+
293
+
294
+ <section id="5Buntitled-5D" class="documentation-section">
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+ <!-- Attributes -->
303
+ <section id="attribute-method-details" class="method-section section">
304
+ <h3 class="section-header">Attributes</h3>
305
+
306
+
307
+ <div id="attribute-i-extra_data" class="method-detail">
308
+ <div class="method-heading attribute-method-heading">
309
+ <span class="method-name">extra_data</span><span
310
+ class="attribute-access-type">[RW]</span>
311
+ </div>
312
+
313
+ <div class="method-description">
314
+
315
+
316
+
317
+ </div>
318
+ </div>
319
+
320
+ </section><!-- attribute-method-details -->
321
+
322
+
323
+ <!-- Methods -->
324
+
325
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
326
+ <h3 class="section-header">Public Class Methods</h3>
327
+
328
+
329
+ <div id="method-c-error_key" class="method-detail ">
330
+
331
+ <div class="method-heading">
332
+ <span class="method-name">error_key</span><span
333
+ class="method-args">(key = nil, namespace = nil)</span>
334
+ <span class="method-click-advice">click to toggle source</span>
335
+ </div>
336
+
337
+
338
+ <div class="method-description">
339
+
340
+
341
+
342
+
343
+
344
+ <div class="method-source-code" id="error_key-source">
345
+ <pre><span class="ruby-comment"># File lib/core/errors.rb, line 40</span>
346
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">error_key</span>(<span class="ruby-identifier">key</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">namespace</span> = <span class="ruby-keyword">nil</span>)
347
+ <span class="ruby-identifier">define_method</span>(<span class="ruby-value">:error_key</span>) { <span class="ruby-identifier">key</span> }
348
+ <span class="ruby-identifier">error_namespace</span>(<span class="ruby-identifier">namespace</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">namespace</span>
349
+ <span class="ruby-keyword">end</span></pre>
350
+ </div><!-- error_key-source -->
351
+
352
+ </div>
353
+
354
+
355
+
356
+
357
+ </div><!-- error_key-method -->
358
+
359
+
360
+ <div id="method-c-error_message" class="method-detail ">
361
+
362
+ <div class="method-heading">
363
+ <span class="method-name">error_message</span><span
364
+ class="method-args">(message)</span>
365
+ <span class="method-click-advice">click to toggle source</span>
366
+ </div>
367
+
368
+
369
+ <div class="method-description">
370
+
371
+
372
+
373
+
374
+
375
+ <div class="method-source-code" id="error_message-source">
376
+ <pre><span class="ruby-comment"># File lib/core/errors.rb, line 48</span>
377
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">error_message</span>(<span class="ruby-identifier">message</span>)
378
+ <span class="ruby-identifier">define_method</span>(<span class="ruby-value">:error_message</span>) { <span class="ruby-identifier">message</span> }
379
+ <span class="ruby-keyword">end</span></pre>
380
+ </div><!-- error_message-source -->
381
+
382
+ </div>
383
+
384
+
385
+
386
+
387
+ </div><!-- error_message-method -->
388
+
389
+
390
+ <div id="method-c-error_namespace" class="method-detail ">
391
+
392
+ <div class="method-heading">
393
+ <span class="method-name">error_namespace</span><span
394
+ class="method-args">(namespace)</span>
395
+ <span class="method-click-advice">click to toggle source</span>
396
+ </div>
397
+
398
+
399
+ <div class="method-description">
400
+
401
+
402
+
403
+
404
+
405
+ <div class="method-source-code" id="error_namespace-source">
406
+ <pre><span class="ruby-comment"># File lib/core/errors.rb, line 55</span>
407
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">error_namespace</span>(<span class="ruby-identifier">namespace</span>)
408
+ <span class="ruby-identifier">define_method</span>(<span class="ruby-value">:error_namespace</span>) { <span class="ruby-identifier">namespace</span> }
409
+ <span class="ruby-keyword">end</span></pre>
410
+ </div><!-- error_namespace-source -->
411
+
412
+ </div>
413
+
414
+
415
+
416
+
417
+ </div><!-- error_namespace-method -->
418
+
419
+
420
+ <div id="method-c-new" class="method-detail ">
421
+
422
+ <div class="method-heading">
423
+ <span class="method-name">new</span><span
424
+ class="method-args">(*args)</span>
425
+ <span class="method-click-advice">click to toggle source</span>
426
+ </div>
427
+
428
+
429
+ <div class="method-description">
430
+
431
+
432
+
433
+
434
+
435
+ <div class="method-source-code" id="new-source">
436
+ <pre><span class="ruby-comment"># File lib/core/errors.rb, line 13</span>
437
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(*<span class="ruby-identifier">args</span>)
438
+ <span class="ruby-identifier">key</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">shift</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Symbol</span>)
439
+ <span class="ruby-identifier">message</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">shift</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
440
+ <span class="ruby-identifier">message</span> <span class="ruby-operator">||=</span> {}
441
+
442
+ <span class="ruby-ivar">@extra_data</span> = <span class="ruby-identifier">message</span>.<span class="ruby-identifier">dup</span>
443
+
444
+ <span class="ruby-identifier">message</span>[<span class="ruby-value">:key</span>] <span class="ruby-operator">||=</span> <span class="ruby-identifier">error_key</span>
445
+ <span class="ruby-identifier">message</span>[<span class="ruby-value">:namespace</span>] <span class="ruby-operator">||=</span> <span class="ruby-identifier">error_namespace</span>
446
+ <span class="ruby-identifier">message</span>[<span class="ruby-value">:key</span>] = <span class="ruby-identifier">key</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">key</span>
447
+
448
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">message</span>[<span class="ruby-value">:key</span>]
449
+ <span class="ruby-identifier">message</span> = <span class="ruby-identifier">translate_error</span>(<span class="ruby-identifier">message</span>)
450
+ <span class="ruby-keyword">else</span>
451
+ <span class="ruby-identifier">message</span> = <span class="ruby-identifier">error_message</span>
452
+ <span class="ruby-keyword">end</span>
453
+
454
+ <span class="ruby-keyword">super</span>(<span class="ruby-identifier">message</span>)
455
+ <span class="ruby-keyword">end</span></pre>
456
+ </div><!-- new-source -->
457
+
458
+ </div>
459
+
460
+
461
+
462
+
463
+ </div><!-- new-method -->
464
+
465
+
466
+ <div id="method-c-status_code" class="method-detail ">
467
+
468
+ <div class="method-heading">
469
+ <span class="method-name">status_code</span><span
470
+ class="method-args">(code)</span>
471
+ <span class="method-click-advice">click to toggle source</span>
472
+ </div>
473
+
474
+
475
+ <div class="method-description">
476
+
477
+
478
+
479
+
480
+
481
+ <div class="method-source-code" id="status_code-source">
482
+ <pre><span class="ruby-comment"># File lib/core/errors.rb, line 62</span>
483
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">status_code</span>(<span class="ruby-identifier">code</span>)
484
+ <span class="ruby-identifier">define_method</span>(<span class="ruby-value">:status_code</span>) { <span class="ruby-identifier">code</span> }
485
+ <span class="ruby-keyword">end</span></pre>
486
+ </div><!-- status_code-source -->
487
+
488
+ </div>
489
+
490
+
491
+
492
+
493
+ </div><!-- status_code-method -->
494
+
495
+
496
+ </section><!-- public-class-method-details -->
497
+
498
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
499
+ <h3 class="section-header">Public Instance Methods</h3>
500
+
501
+
502
+ <div id="method-i-error_key" class="method-detail ">
503
+
504
+ <div class="method-heading">
505
+ <span class="method-name">error_key</span><span
506
+ class="method-args">()</span>
507
+ <span class="method-click-advice">click to toggle source</span>
508
+ </div>
509
+
510
+
511
+ <div class="method-description">
512
+
513
+
514
+
515
+
516
+
517
+ <div class="method-source-code" id="error_key-source">
518
+ <pre><span class="ruby-comment"># File lib/core/errors.rb, line 44</span>
519
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">error_key</span>; <span class="ruby-keyword">nil</span>; <span class="ruby-keyword">end</span></pre>
520
+ </div><!-- error_key-source -->
521
+
522
+ </div>
523
+
524
+
525
+
526
+
527
+ </div><!-- error_key-method -->
528
+
529
+
530
+ <div id="method-i-error_message" class="method-detail ">
531
+
532
+ <div class="method-heading">
533
+ <span class="method-name">error_message</span><span
534
+ class="method-args">()</span>
535
+ <span class="method-click-advice">click to toggle source</span>
536
+ </div>
537
+
538
+
539
+ <div class="method-description">
540
+
541
+
542
+
543
+
544
+
545
+ <div class="method-source-code" id="error_message-source">
546
+ <pre><span class="ruby-comment"># File lib/core/errors.rb, line 51</span>
547
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">error_message</span>; <span class="ruby-string">&quot;No error message&quot;</span>; <span class="ruby-keyword">end</span></pre>
548
+ </div><!-- error_message-source -->
549
+
550
+ </div>
551
+
552
+
553
+
554
+
555
+ </div><!-- error_message-method -->
556
+
557
+
558
+ <div id="method-i-error_namespace" class="method-detail ">
559
+
560
+ <div class="method-heading">
561
+ <span class="method-name">error_namespace</span><span
562
+ class="method-args">()</span>
563
+ <span class="method-click-advice">click to toggle source</span>
564
+ </div>
565
+
566
+
567
+ <div class="method-description">
568
+
569
+
570
+
571
+
572
+
573
+ <div class="method-source-code" id="error_namespace-source">
574
+ <pre><span class="ruby-comment"># File lib/core/errors.rb, line 58</span>
575
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">error_namespace</span>; <span class="ruby-string">&quot;nucleon.errors&quot;</span>; <span class="ruby-keyword">end</span></pre>
576
+ </div><!-- error_namespace-source -->
577
+
578
+ </div>
579
+
580
+
581
+
582
+
583
+ </div><!-- error_namespace-method -->
584
+
585
+
586
+ <div id="method-i-status_code" class="method-detail ">
587
+
588
+ <div class="method-heading">
589
+ <span class="method-name">status_code</span><span
590
+ class="method-args">()</span>
591
+ <span class="method-click-advice">click to toggle source</span>
592
+ </div>
593
+
594
+
595
+ <div class="method-description">
596
+
597
+
598
+
599
+
600
+
601
+ <div class="method-source-code" id="status_code-source">
602
+ <pre><span class="ruby-comment"># File lib/core/errors.rb, line 65</span>
603
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">status_code</span>; <span class="ruby-value">1</span>; <span class="ruby-keyword">end</span></pre>
604
+ </div><!-- status_code-source -->
605
+
606
+ </div>
607
+
608
+
609
+
610
+
611
+ </div><!-- status_code-method -->
612
+
613
+
614
+ </section><!-- public-instance-method-details -->
615
+
616
+ <section id="protected-instance-5Buntitled-5D-method-details" class="method-section section">
617
+ <h3 class="section-header">Protected Instance Methods</h3>
618
+
619
+
620
+ <div id="method-i-translate_error" class="method-detail ">
621
+
622
+ <div class="method-heading">
623
+ <span class="method-name">translate_error</span><span
624
+ class="method-args">(options)</span>
625
+ <span class="method-click-advice">click to toggle source</span>
626
+ </div>
627
+
628
+
629
+ <div class="method-description">
630
+
631
+
632
+
633
+
634
+
635
+ <div class="method-source-code" id="translate_error-source">
636
+ <pre><span class="ruby-comment"># File lib/core/errors.rb, line 70</span>
637
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">translate_error</span>(<span class="ruby-identifier">options</span>)
638
+ <span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">options</span>[<span class="ruby-value">:key</span>]
639
+ <span class="ruby-constant">I18n</span>.<span class="ruby-identifier">t</span>(<span class="ruby-node">&quot;#{options[:namespace]}.#{options[:key]}&quot;</span>, <span class="ruby-identifier">options</span>)
640
+ <span class="ruby-keyword">end</span></pre>
641
+ </div><!-- translate_error-source -->
642
+
643
+ </div>
644
+
645
+
646
+
647
+
648
+ </div><!-- translate_error-method -->
649
+
650
+
651
+ </section><!-- protected-instance-method-details -->
652
+
653
+ </section><!-- 5Buntitled-5D -->
654
+
655
+ </div><!-- documentation -->
656
+
657
+
658
+ <footer id="validator-badges">
659
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
660
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
661
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
662
+ </footer>
663
+