nucleon 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -0
  3. data/Gemfile.lock +2 -0
  4. data/VERSION +1 -1
  5. data/lib/core/config.rb +21 -20
  6. data/lib/core/environment.rb +2 -2
  7. data/lib/core/facade.rb +15 -0
  8. data/lib/core/mixin/action/registration.rb +84 -0
  9. data/lib/core/mixin/sub_config.rb +5 -5
  10. data/lib/core/plugin/action.rb +66 -10
  11. data/lib/core/plugin/base.rb +100 -19
  12. data/lib/core/plugin/command.rb +4 -0
  13. data/lib/core/util/cache.rb +13 -1
  14. data/lib/core/util/cli.rb +77 -11
  15. data/lib/core/util/console.rb +55 -72
  16. data/lib/core/util/data.rb +19 -9
  17. data/lib/core/util/logger.rb +16 -6
  18. data/lib/core/util/shell.rb +3 -1
  19. data/lib/core/util/ssh.rb +28 -25
  20. data/lib/nucleon/translator/JSON.rb +2 -2
  21. data/lib/nucleon/translator/YAML.rb +2 -2
  22. data/lib/nucleon_base.rb +22 -8
  23. data/nucleon.gemspec +122 -2
  24. data/rdoc/site/0.2.0/ARCHITECTURE_rdoc.html +638 -0
  25. data/rdoc/site/0.2.0/Hash.html +351 -0
  26. data/rdoc/site/0.2.0/Kernel.html +416 -0
  27. data/rdoc/site/0.2.0/Nucleon.html +607 -0
  28. data/rdoc/site/0.2.0/Nucleon/Action.html +284 -0
  29. data/rdoc/site/0.2.0/Nucleon/Action/Extract.html +455 -0
  30. data/rdoc/site/0.2.0/Nucleon/Action/Project.html +283 -0
  31. data/rdoc/site/0.2.0/Nucleon/Action/Project/Add.html +500 -0
  32. data/rdoc/site/0.2.0/Nucleon/Action/Project/Create.html +457 -0
  33. data/rdoc/site/0.2.0/Nucleon/Action/Project/Remove.html +503 -0
  34. data/rdoc/site/0.2.0/Nucleon/Action/Project/Save.html +476 -0
  35. data/rdoc/site/0.2.0/Nucleon/Action/Project/Update.html +423 -0
  36. data/rdoc/site/0.2.0/Nucleon/Codes.html +567 -0
  37. data/rdoc/site/0.2.0/Nucleon/Command.html +279 -0
  38. data/rdoc/site/0.2.0/Nucleon/Command/Bash.html +548 -0
  39. data/rdoc/site/0.2.0/Nucleon/Config.html +1631 -0
  40. data/rdoc/site/0.2.0/Nucleon/Config/Collection.html +513 -0
  41. data/rdoc/site/0.2.0/Nucleon/Config/Options.html +493 -0
  42. data/rdoc/site/0.2.0/Nucleon/Core.html +639 -0
  43. data/rdoc/site/0.2.0/Nucleon/Environment.html +1208 -0
  44. data/rdoc/site/0.2.0/Nucleon/Errors.html +279 -0
  45. data/rdoc/site/0.2.0/Nucleon/Errors/BatchError.html +285 -0
  46. data/rdoc/site/0.2.0/Nucleon/Errors/NucleonError.html +661 -0
  47. data/rdoc/site/0.2.0/Nucleon/Errors/SSHUnavailable.html +285 -0
  48. data/rdoc/site/0.2.0/Nucleon/Event.html +279 -0
  49. data/rdoc/site/0.2.0/Nucleon/Event/Regex.html +471 -0
  50. data/rdoc/site/0.2.0/Nucleon/Facade.html +2409 -0
  51. data/rdoc/site/0.2.0/Nucleon/Gems.html +639 -0
  52. data/rdoc/site/0.2.0/Nucleon/Manager.html +1860 -0
  53. data/rdoc/site/0.2.0/Nucleon/Mixin.html +288 -0
  54. data/rdoc/site/0.2.0/Nucleon/Mixin/Action.html +281 -0
  55. data/rdoc/site/0.2.0/Nucleon/Mixin/Action/Commit.html +385 -0
  56. data/rdoc/site/0.2.0/Nucleon/Mixin/Action/Project.html +399 -0
  57. data/rdoc/site/0.2.0/Nucleon/Mixin/Action/Push.html +375 -0
  58. data/rdoc/site/0.2.0/Nucleon/Mixin/Colors.html +549 -0
  59. data/rdoc/site/0.2.0/Nucleon/Mixin/ConfigCollection.html +485 -0
  60. data/rdoc/site/0.2.0/Nucleon/Mixin/ConfigOptions.html +453 -0
  61. data/rdoc/site/0.2.0/Nucleon/Mixin/Macro.html +280 -0
  62. data/rdoc/site/0.2.0/Nucleon/Mixin/Macro/ObjectInterface.html +699 -0
  63. data/rdoc/site/0.2.0/Nucleon/Mixin/Macro/PluginInterface.html +686 -0
  64. data/rdoc/site/0.2.0/Nucleon/Mixin/Settings.html +485 -0
  65. data/rdoc/site/0.2.0/Nucleon/Mixin/SubConfig.html +891 -0
  66. data/rdoc/site/0.2.0/Nucleon/Parallel.html +330 -0
  67. data/rdoc/site/0.2.0/Nucleon/Parallel/ClassMethods.html +329 -0
  68. data/rdoc/site/0.2.0/Nucleon/Parallel/InstanceMethods.html +456 -0
  69. data/rdoc/site/0.2.0/Nucleon/Plugin.html +286 -0
  70. data/rdoc/site/0.2.0/Nucleon/Plugin/Action.html +1829 -0
  71. data/rdoc/site/0.2.0/Nucleon/Plugin/Action/Option.html +463 -0
  72. data/rdoc/site/0.2.0/Nucleon/Plugin/Base.html +1803 -0
  73. data/rdoc/site/0.2.0/Nucleon/Plugin/Command.html +725 -0
  74. data/rdoc/site/0.2.0/Nucleon/Plugin/Event.html +446 -0
  75. data/rdoc/site/0.2.0/Nucleon/Plugin/Extension.html +285 -0
  76. data/rdoc/site/0.2.0/Nucleon/Plugin/Project.html +2898 -0
  77. data/rdoc/site/0.2.0/Nucleon/Plugin/Template.html +480 -0
  78. data/rdoc/site/0.2.0/Nucleon/Plugin/Translator.html +375 -0
  79. data/rdoc/site/0.2.0/Nucleon/Project.html +280 -0
  80. data/rdoc/site/0.2.0/Nucleon/Project/Git.html +1805 -0
  81. data/rdoc/site/0.2.0/Nucleon/Project/Github.html +553 -0
  82. data/rdoc/site/0.2.0/Nucleon/Template.html +281 -0
  83. data/rdoc/site/0.2.0/Nucleon/Template/JSON.html +333 -0
  84. data/rdoc/site/0.2.0/Nucleon/Template/Wrapper.html +333 -0
  85. data/rdoc/site/0.2.0/Nucleon/Template/YAML.html +333 -0
  86. data/rdoc/site/0.2.0/Nucleon/Translator.html +280 -0
  87. data/rdoc/site/0.2.0/Nucleon/Translator/JSON.html +370 -0
  88. data/rdoc/site/0.2.0/Nucleon/Translator/YAML.html +370 -0
  89. data/rdoc/site/0.2.0/Nucleon/Util.html +289 -0
  90. data/rdoc/site/0.2.0/Nucleon/Util/CLI.html +392 -0
  91. data/rdoc/site/0.2.0/Nucleon/Util/CLI/Parser.html +1250 -0
  92. data/rdoc/site/0.2.0/Nucleon/Util/Cache.html +784 -0
  93. data/rdoc/site/0.2.0/Nucleon/Util/Console.html +1318 -0
  94. data/rdoc/site/0.2.0/Nucleon/Util/Data.html +1411 -0
  95. data/rdoc/site/0.2.0/Nucleon/Util/Disk.html +526 -0
  96. data/rdoc/site/0.2.0/Nucleon/Util/Git.html +365 -0
  97. data/rdoc/site/0.2.0/Nucleon/Util/Liquid.html +369 -0
  98. data/rdoc/site/0.2.0/Nucleon/Util/Logger.html +810 -0
  99. data/rdoc/site/0.2.0/Nucleon/Util/Package.html +562 -0
  100. data/rdoc/site/0.2.0/Nucleon/Util/SSH.html +1033 -0
  101. data/rdoc/site/0.2.0/Nucleon/Util/SSH/Keypair.html +605 -0
  102. data/rdoc/site/0.2.0/Nucleon/Util/Shell.html +693 -0
  103. data/rdoc/site/0.2.0/Nucleon/Util/Shell/Result.html +501 -0
  104. data/rdoc/site/0.2.0/README_rdoc.html +316 -0
  105. data/rdoc/site/0.2.0/TODO_rdoc.html +265 -0
  106. data/rdoc/site/0.2.0/created.rid +61 -0
  107. data/rdoc/site/0.2.0/images/add.png +0 -0
  108. data/rdoc/site/0.2.0/images/brick.png +0 -0
  109. data/rdoc/site/0.2.0/images/brick_link.png +0 -0
  110. data/rdoc/site/0.2.0/images/bug.png +0 -0
  111. data/rdoc/site/0.2.0/images/bullet_black.png +0 -0
  112. data/rdoc/site/0.2.0/images/bullet_toggle_minus.png +0 -0
  113. data/rdoc/site/0.2.0/images/bullet_toggle_plus.png +0 -0
  114. data/rdoc/site/0.2.0/images/date.png +0 -0
  115. data/rdoc/site/0.2.0/images/delete.png +0 -0
  116. data/rdoc/site/0.2.0/images/find.png +0 -0
  117. data/rdoc/site/0.2.0/images/loadingAnimation.gif +0 -0
  118. data/rdoc/site/0.2.0/images/macFFBgHack.png +0 -0
  119. data/rdoc/site/0.2.0/images/package.png +0 -0
  120. data/rdoc/site/0.2.0/images/page_green.png +0 -0
  121. data/rdoc/site/0.2.0/images/page_white_text.png +0 -0
  122. data/rdoc/site/0.2.0/images/page_white_width.png +0 -0
  123. data/rdoc/site/0.2.0/images/plugin.png +0 -0
  124. data/rdoc/site/0.2.0/images/ruby.png +0 -0
  125. data/rdoc/site/0.2.0/images/tag_blue.png +0 -0
  126. data/rdoc/site/0.2.0/images/tag_green.png +0 -0
  127. data/rdoc/site/0.2.0/images/transparent.png +0 -0
  128. data/rdoc/site/0.2.0/images/wrench.png +0 -0
  129. data/rdoc/site/0.2.0/images/wrench_orange.png +0 -0
  130. data/rdoc/site/0.2.0/images/zoom.png +0 -0
  131. data/rdoc/site/0.2.0/index.html +315 -0
  132. data/rdoc/site/0.2.0/js/darkfish.js +155 -0
  133. data/rdoc/site/0.2.0/js/jquery.js +18 -0
  134. data/rdoc/site/0.2.0/js/navigation.js +142 -0
  135. data/rdoc/site/0.2.0/js/search.js +94 -0
  136. data/rdoc/site/0.2.0/js/search_index.js +1 -0
  137. data/rdoc/site/0.2.0/js/searcher.js +228 -0
  138. data/rdoc/site/0.2.0/rdoc.css +543 -0
  139. data/rdoc/site/0.2.0/table_of_contents.html +1657 -0
  140. data/spec/core/util/console_spec.rb +50 -18
  141. metadata +133 -2
@@ -0,0 +1,725 @@
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::Plugin::Command - nucleon 0.2.0</title>
8
+
9
+ <link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../../index.html">Home</a>
28
+ <a href="../../table_of_contents.html#classes">Classes</a>
29
+ <a href="../../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ <li>lib/core/plugin/command.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(:nucleon, :base)
63
+
64
+ </nav>
65
+
66
+
67
+ <!-- Method Quickref -->
68
+ <nav id="method-list-section" class="section">
69
+ <h3 class="section-header">Methods</h3>
70
+
71
+ <ul class="link-list">
72
+
73
+ <li><a href="#method-i-args">#args</a>
74
+
75
+ <li><a href="#method-i-args-3D">#args=</a>
76
+
77
+ <li><a href="#method-i-build">#build</a>
78
+
79
+ <li><a href="#method-i-command">#command</a>
80
+
81
+ <li><a href="#method-i-command-3D">#command=</a>
82
+
83
+ <li><a href="#method-i-data">#data</a>
84
+
85
+ <li><a href="#method-i-data-3D">#data=</a>
86
+
87
+ <li><a href="#method-i-exec">#exec</a>
88
+
89
+ <li><a href="#method-i-flags">#flags</a>
90
+
91
+ <li><a href="#method-i-flags-3D">#flags=</a>
92
+
93
+ <li><a href="#method-i-normalize">#normalize</a>
94
+
95
+ <li><a href="#method-i-subcommand-3D">#subcommand=</a>
96
+
97
+ <li><a href="#method-i-to_s">#to_s</a>
98
+
99
+ </ul>
100
+ </nav>
101
+
102
+ </div>
103
+
104
+ <div id="project-metadata">
105
+ <nav id="fileindex-section" class="section project-section">
106
+ <h3 class="section-header">Pages</h3>
107
+
108
+ <ul>
109
+
110
+ <li class="file"><a href="../../ARCHITECTURE_rdoc.html">ARCHITECTURE</a>
111
+
112
+ <li class="file"><a href="../../README_rdoc.html">README</a>
113
+
114
+ <li class="file"><a href="../../TODO_rdoc.html">TODO</a>
115
+
116
+ </ul>
117
+ </nav>
118
+
119
+ <nav id="classindex-section" class="section project-section">
120
+ <h3 class="section-header">Class and Module Index</h3>
121
+
122
+ <ul class="link-list">
123
+
124
+ <li><a href="../../Nucleon.html">Nucleon</a>
125
+
126
+ <li><a href="../../Nucleon/Action.html">Nucleon::Action</a>
127
+
128
+ <li><a href="../../Nucleon/Action/Extract.html">Nucleon::Action::Extract</a>
129
+
130
+ <li><a href="../../Nucleon/Action/Project.html">Nucleon::Action::Project</a>
131
+
132
+ <li><a href="../../Nucleon/Action/Project/Add.html">Nucleon::Action::Project::Add</a>
133
+
134
+ <li><a href="../../Nucleon/Action/Project/Create.html">Nucleon::Action::Project::Create</a>
135
+
136
+ <li><a href="../../Nucleon/Action/Project/Remove.html">Nucleon::Action::Project::Remove</a>
137
+
138
+ <li><a href="../../Nucleon/Action/Project/Save.html">Nucleon::Action::Project::Save</a>
139
+
140
+ <li><a href="../../Nucleon/Action/Project/Update.html">Nucleon::Action::Project::Update</a>
141
+
142
+ <li><a href="../../Nucleon/Codes.html">Nucleon::Codes</a>
143
+
144
+ <li><a href="../../Nucleon/Command.html">Nucleon::Command</a>
145
+
146
+ <li><a href="../../Nucleon/Command/Bash.html">Nucleon::Command::Bash</a>
147
+
148
+ <li><a href="../../Nucleon/Config.html">Nucleon::Config</a>
149
+
150
+ <li><a href="../../Nucleon/Config/Collection.html">Nucleon::Config::Collection</a>
151
+
152
+ <li><a href="../../Nucleon/Config/Options.html">Nucleon::Config::Options</a>
153
+
154
+ <li><a href="../../Nucleon/Core.html">Nucleon::Core</a>
155
+
156
+ <li><a href="../../Nucleon/Environment.html">Nucleon::Environment</a>
157
+
158
+ <li><a href="../../Nucleon/Errors.html">Nucleon::Errors</a>
159
+
160
+ <li><a href="../../Nucleon/Errors/BatchError.html">Nucleon::Errors::BatchError</a>
161
+
162
+ <li><a href="../../Nucleon/Errors/NucleonError.html">Nucleon::Errors::NucleonError</a>
163
+
164
+ <li><a href="../../Nucleon/Errors/SSHUnavailable.html">Nucleon::Errors::SSHUnavailable</a>
165
+
166
+ <li><a href="../../Nucleon/Event.html">Nucleon::Event</a>
167
+
168
+ <li><a href="../../Nucleon/Event/Regex.html">Nucleon::Event::Regex</a>
169
+
170
+ <li><a href="../../Nucleon/Facade.html">Nucleon::Facade</a>
171
+
172
+ <li><a href="../../Nucleon/Gems.html">Nucleon::Gems</a>
173
+
174
+ <li><a href="../../Nucleon/Manager.html">Nucleon::Manager</a>
175
+
176
+ <li><a href="../../Nucleon/Mixin.html">Nucleon::Mixin</a>
177
+
178
+ <li><a href="../../Nucleon/Mixin/Action.html">Nucleon::Mixin::Action</a>
179
+
180
+ <li><a href="../../Nucleon/Mixin/Action/Commit.html">Nucleon::Mixin::Action::Commit</a>
181
+
182
+ <li><a href="../../Nucleon/Mixin/Action/Project.html">Nucleon::Mixin::Action::Project</a>
183
+
184
+ <li><a href="../../Nucleon/Mixin/Action/Push.html">Nucleon::Mixin::Action::Push</a>
185
+
186
+ <li><a href="../../Nucleon/Mixin/Colors.html">Nucleon::Mixin::Colors</a>
187
+
188
+ <li><a href="../../Nucleon/Mixin/ConfigCollection.html">Nucleon::Mixin::ConfigCollection</a>
189
+
190
+ <li><a href="../../Nucleon/Mixin/ConfigOptions.html">Nucleon::Mixin::ConfigOptions</a>
191
+
192
+ <li><a href="../../Nucleon/Mixin/Macro.html">Nucleon::Mixin::Macro</a>
193
+
194
+ <li><a href="../../Nucleon/Mixin/Macro/ObjectInterface.html">Nucleon::Mixin::Macro::ObjectInterface</a>
195
+
196
+ <li><a href="../../Nucleon/Mixin/Macro/PluginInterface.html">Nucleon::Mixin::Macro::PluginInterface</a>
197
+
198
+ <li><a href="../../Nucleon/Mixin/Settings.html">Nucleon::Mixin::Settings</a>
199
+
200
+ <li><a href="../../Nucleon/Mixin/SubConfig.html">Nucleon::Mixin::SubConfig</a>
201
+
202
+ <li><a href="../../Nucleon/Parallel.html">Nucleon::Parallel</a>
203
+
204
+ <li><a href="../../Nucleon/Parallel/ClassMethods.html">Nucleon::Parallel::ClassMethods</a>
205
+
206
+ <li><a href="../../Nucleon/Parallel/InstanceMethods.html">Nucleon::Parallel::InstanceMethods</a>
207
+
208
+ <li><a href="../../Nucleon/Plugin.html">Nucleon::Plugin</a>
209
+
210
+ <li><a href="../../Nucleon/Plugin/Action.html">Nucleon::Plugin::Action</a>
211
+
212
+ <li><a href="../../Nucleon/Plugin/Action/Option.html">Nucleon::Plugin::Action::Option</a>
213
+
214
+ <li><a href="../../Nucleon/Plugin/Base.html">Nucleon::Plugin::Base</a>
215
+
216
+ <li><a href="../../Nucleon/Plugin/Command.html">Nucleon::Plugin::Command</a>
217
+
218
+ <li><a href="../../Nucleon/Plugin/Event.html">Nucleon::Plugin::Event</a>
219
+
220
+ <li><a href="../../Nucleon/Plugin/Extension.html">Nucleon::Plugin::Extension</a>
221
+
222
+ <li><a href="../../Nucleon/Plugin/Project.html">Nucleon::Plugin::Project</a>
223
+
224
+ <li><a href="../../Nucleon/Plugin/Template.html">Nucleon::Plugin::Template</a>
225
+
226
+ <li><a href="../../Nucleon/Plugin/Translator.html">Nucleon::Plugin::Translator</a>
227
+
228
+ <li><a href="../../Nucleon/Project.html">Nucleon::Project</a>
229
+
230
+ <li><a href="../../Nucleon/Project/Git.html">Nucleon::Project::Git</a>
231
+
232
+ <li><a href="../../Nucleon/Project/Github.html">Nucleon::Project::Github</a>
233
+
234
+ <li><a href="../../Nucleon/Template.html">Nucleon::Template</a>
235
+
236
+ <li><a href="../../Nucleon/Template/JSON.html">Nucleon::Template::JSON</a>
237
+
238
+ <li><a href="../../Nucleon/Template/Wrapper.html">Nucleon::Template::Wrapper</a>
239
+
240
+ <li><a href="../../Nucleon/Template/YAML.html">Nucleon::Template::YAML</a>
241
+
242
+ <li><a href="../../Nucleon/Translator.html">Nucleon::Translator</a>
243
+
244
+ <li><a href="../../Nucleon/Translator/JSON.html">Nucleon::Translator::JSON</a>
245
+
246
+ <li><a href="../../Nucleon/Translator/YAML.html">Nucleon::Translator::YAML</a>
247
+
248
+ <li><a href="../../Nucleon/Util.html">Nucleon::Util</a>
249
+
250
+ <li><a href="../../Nucleon/Util/CLI.html">Nucleon::Util::CLI</a>
251
+
252
+ <li><a href="../../Nucleon/Util/CLI/Parser.html">Nucleon::Util::CLI::Parser</a>
253
+
254
+ <li><a href="../../Nucleon/Util/Cache.html">Nucleon::Util::Cache</a>
255
+
256
+ <li><a href="../../Nucleon/Util/Console.html">Nucleon::Util::Console</a>
257
+
258
+ <li><a href="../../Nucleon/Util/Data.html">Nucleon::Util::Data</a>
259
+
260
+ <li><a href="../../Nucleon/Util/Disk.html">Nucleon::Util::Disk</a>
261
+
262
+ <li><a href="../../Nucleon/Util/Git.html">Nucleon::Util::Git</a>
263
+
264
+ <li><a href="../../Nucleon/Util/Liquid.html">Nucleon::Util::Liquid</a>
265
+
266
+ <li><a href="../../Nucleon/Util/Logger.html">Nucleon::Util::Logger</a>
267
+
268
+ <li><a href="../../Nucleon/Util/Package.html">Nucleon::Util::Package</a>
269
+
270
+ <li><a href="../../Nucleon/Util/SSH.html">Nucleon::Util::SSH</a>
271
+
272
+ <li><a href="../../Nucleon/Util/SSH/Keypair.html">Nucleon::Util::SSH::Keypair</a>
273
+
274
+ <li><a href="../../Nucleon/Util/Shell.html">Nucleon::Util::Shell</a>
275
+
276
+ <li><a href="../../Nucleon/Util/Shell/Result.html">Nucleon::Util::Shell::Result</a>
277
+
278
+ <li><a href="../../Hash.html">Hash</a>
279
+
280
+ <li><a href="../../Kernel.html">Kernel</a>
281
+
282
+ </ul>
283
+ </nav>
284
+
285
+ </div>
286
+ </nav>
287
+
288
+ <div id="documentation">
289
+ <h1 class="class">class Nucleon::Plugin::Command</h1>
290
+
291
+ <div id="description" class="description">
292
+
293
+ </div><!-- description -->
294
+
295
+
296
+
297
+
298
+ <section id="5Buntitled-5D" class="documentation-section">
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+ <!-- Methods -->
308
+
309
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
310
+ <h3 class="section-header">Public Instance Methods</h3>
311
+
312
+
313
+ <div id="method-i-args" class="method-detail ">
314
+
315
+ <div class="method-heading">
316
+ <span class="method-name">args</span><span
317
+ class="method-args">(default = [])</span>
318
+ <span class="method-click-advice">click to toggle source</span>
319
+ </div>
320
+
321
+
322
+ <div class="method-description">
323
+
324
+
325
+
326
+
327
+
328
+ <div class="method-source-code" id="args-source">
329
+ <pre><span class="ruby-comment"># File lib/core/plugin/command.rb, line 34</span>
330
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">args</span>(<span class="ruby-identifier">default</span> = [])
331
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">array</span>(<span class="ruby-identifier">get</span>(<span class="ruby-value">:args</span>, <span class="ruby-identifier">default</span>))
332
+ <span class="ruby-keyword">end</span></pre>
333
+ </div><!-- args-source -->
334
+
335
+ </div>
336
+
337
+
338
+
339
+
340
+ </div><!-- args-method -->
341
+
342
+
343
+ <div id="method-i-args-3D" class="method-detail ">
344
+
345
+ <div class="method-heading">
346
+ <span class="method-name">args=</span><span
347
+ class="method-args">(args)</span>
348
+ <span class="method-click-advice">click to toggle source</span>
349
+ </div>
350
+
351
+
352
+ <div class="method-description">
353
+
354
+
355
+
356
+
357
+
358
+ <div class="method-source-code" id="args-3D-source">
359
+ <pre><span class="ruby-comment"># File lib/core/plugin/command.rb, line 40</span>
360
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">args=</span><span class="ruby-identifier">args</span>
361
+ <span class="ruby-identifier">set</span>(<span class="ruby-value">:args</span>, <span class="ruby-identifier">array</span>(<span class="ruby-identifier">args</span>))
362
+ <span class="ruby-keyword">end</span></pre>
363
+ </div><!-- args-3D-source -->
364
+
365
+ </div>
366
+
367
+
368
+
369
+
370
+ </div><!-- args-3D-method -->
371
+
372
+
373
+ <div id="method-i-build" class="method-detail ">
374
+
375
+ <div class="method-heading">
376
+ <span class="method-name">build</span><span
377
+ class="method-args">(components = {}, overrides = nil, override_key = false)</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="build-source">
389
+ <pre><span class="ruby-comment"># File lib/core/plugin/command.rb, line 79</span>
390
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">build</span>(<span class="ruby-identifier">components</span> = {}, <span class="ruby-identifier">overrides</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">override_key</span> = <span class="ruby-keyword">false</span>)
391
+ <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-node">&quot;Building command with #{components.inspect}&quot;</span>)
392
+ <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-node">&quot;Overrides: #{overrides.inspect}&quot;</span>)
393
+ <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-node">&quot;Override key: #{override_key}&quot;</span>)
394
+
395
+ <span class="ruby-keyword">return</span> <span class="ruby-string">&#39;&#39;</span> <span class="ruby-comment"># Implement in sub classes</span>
396
+ <span class="ruby-keyword">end</span></pre>
397
+ </div><!-- build-source -->
398
+
399
+ </div>
400
+
401
+
402
+
403
+
404
+ </div><!-- build-method -->
405
+
406
+
407
+ <div id="method-i-command" class="method-detail ">
408
+
409
+ <div class="method-heading">
410
+ <span class="method-name">command</span><span
411
+ class="method-args">(default = '')</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="command-source">
423
+ <pre><span class="ruby-comment"># File lib/core/plugin/command.rb, line 22</span>
424
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">command</span>(<span class="ruby-identifier">default</span> = <span class="ruby-string">&#39;&#39;</span>)
425
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">string</span>(<span class="ruby-identifier">get</span>(<span class="ruby-value">:command</span>, <span class="ruby-identifier">default</span>))
426
+ <span class="ruby-keyword">end</span></pre>
427
+ </div><!-- command-source -->
428
+
429
+ </div>
430
+
431
+
432
+
433
+
434
+ </div><!-- command-method -->
435
+
436
+
437
+ <div id="method-i-command-3D" class="method-detail ">
438
+
439
+ <div class="method-heading">
440
+ <span class="method-name">command=</span><span
441
+ class="method-args">(command)</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="command-3D-source">
453
+ <pre><span class="ruby-comment"># File lib/core/plugin/command.rb, line 28</span>
454
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">command=</span><span class="ruby-identifier">command</span>
455
+ <span class="ruby-identifier">set</span>(<span class="ruby-value">:command</span>, <span class="ruby-identifier">string</span>(<span class="ruby-identifier">command</span>))
456
+ <span class="ruby-keyword">end</span></pre>
457
+ </div><!-- command-3D-source -->
458
+
459
+ </div>
460
+
461
+
462
+
463
+
464
+ </div><!-- command-3D-method -->
465
+
466
+
467
+ <div id="method-i-data" class="method-detail ">
468
+
469
+ <div class="method-heading">
470
+ <span class="method-name">data</span><span
471
+ class="method-args">(default = {})</span>
472
+ <span class="method-click-advice">click to toggle source</span>
473
+ </div>
474
+
475
+
476
+ <div class="method-description">
477
+
478
+
479
+
480
+
481
+
482
+ <div class="method-source-code" id="data-source">
483
+ <pre><span class="ruby-comment"># File lib/core/plugin/command.rb, line 58</span>
484
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">data</span>(<span class="ruby-identifier">default</span> = {})
485
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">hash</span>(<span class="ruby-identifier">get</span>(<span class="ruby-value">:data</span>, <span class="ruby-identifier">default</span>))
486
+ <span class="ruby-keyword">end</span></pre>
487
+ </div><!-- data-source -->
488
+
489
+ </div>
490
+
491
+
492
+
493
+
494
+ </div><!-- data-method -->
495
+
496
+
497
+ <div id="method-i-data-3D" class="method-detail ">
498
+
499
+ <div class="method-heading">
500
+ <span class="method-name">data=</span><span
501
+ class="method-args">(data)</span>
502
+ <span class="method-click-advice">click to toggle source</span>
503
+ </div>
504
+
505
+
506
+ <div class="method-description">
507
+
508
+
509
+
510
+
511
+
512
+ <div class="method-source-code" id="data-3D-source">
513
+ <pre><span class="ruby-comment"># File lib/core/plugin/command.rb, line 64</span>
514
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">data=</span><span class="ruby-identifier">data</span>
515
+ <span class="ruby-identifier">set</span>(<span class="ruby-value">:data</span>, <span class="ruby-identifier">hash</span>(<span class="ruby-identifier">data</span>))
516
+ <span class="ruby-keyword">end</span></pre>
517
+ </div><!-- data-3D-source -->
518
+
519
+ </div>
520
+
521
+
522
+
523
+
524
+ </div><!-- data-3D-method -->
525
+
526
+
527
+ <div id="method-i-exec" class="method-detail ">
528
+
529
+ <div class="method-heading">
530
+ <span class="method-name">exec</span><span
531
+ class="method-args">(options = {}, overrides = nil)</span>
532
+ <span class="method-click-advice">click to toggle source</span>
533
+ </div>
534
+
535
+
536
+ <div class="method-description">
537
+
538
+
539
+
540
+
541
+
542
+ <div class="method-source-code" id="exec-source">
543
+ <pre><span class="ruby-comment"># File lib/core/plugin/command.rb, line 89</span>
544
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">exec</span>(<span class="ruby-identifier">options</span> = {}, <span class="ruby-identifier">overrides</span> = <span class="ruby-keyword">nil</span>)
545
+ <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-node">&quot;Executing command with #{options.inspect}&quot;</span>)
546
+ <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-node">&quot;Overrides: #{overrides.inspect}&quot;</span>)
547
+
548
+ <span class="ruby-comment"># Implement in sub classes (don&#39;t forget the yield!)</span>
549
+ <span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>
550
+ <span class="ruby-keyword">end</span></pre>
551
+ </div><!-- exec-source -->
552
+
553
+ </div>
554
+
555
+
556
+
557
+
558
+ </div><!-- exec-method -->
559
+
560
+
561
+ <div id="method-i-flags" class="method-detail ">
562
+
563
+ <div class="method-heading">
564
+ <span class="method-name">flags</span><span
565
+ class="method-args">(default = [])</span>
566
+ <span class="method-click-advice">click to toggle source</span>
567
+ </div>
568
+
569
+
570
+ <div class="method-description">
571
+
572
+
573
+
574
+
575
+
576
+ <div class="method-source-code" id="flags-source">
577
+ <pre><span class="ruby-comment"># File lib/core/plugin/command.rb, line 46</span>
578
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">flags</span>(<span class="ruby-identifier">default</span> = [])
579
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">array</span>(<span class="ruby-identifier">get</span>(<span class="ruby-value">:flags</span>, <span class="ruby-identifier">default</span>))
580
+ <span class="ruby-keyword">end</span></pre>
581
+ </div><!-- flags-source -->
582
+
583
+ </div>
584
+
585
+
586
+
587
+
588
+ </div><!-- flags-method -->
589
+
590
+
591
+ <div id="method-i-flags-3D" class="method-detail ">
592
+
593
+ <div class="method-heading">
594
+ <span class="method-name">flags=</span><span
595
+ class="method-args">(flags)</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="flags-3D-source">
607
+ <pre><span class="ruby-comment"># File lib/core/plugin/command.rb, line 52</span>
608
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">flags=</span><span class="ruby-identifier">flags</span>
609
+ <span class="ruby-identifier">set</span>(<span class="ruby-value">:flags</span>, <span class="ruby-identifier">array</span>(<span class="ruby-identifier">flags</span>))
610
+ <span class="ruby-keyword">end</span></pre>
611
+ </div><!-- flags-3D-source -->
612
+
613
+ </div>
614
+
615
+
616
+
617
+
618
+ </div><!-- flags-3D-method -->
619
+
620
+
621
+ <div id="method-i-normalize" class="method-detail ">
622
+
623
+ <div class="method-heading">
624
+ <span class="method-name">normalize</span><span
625
+ class="method-args">(reload)</span>
626
+ <span class="method-click-advice">click to toggle source</span>
627
+ </div>
628
+
629
+
630
+ <div class="method-description">
631
+
632
+
633
+
634
+
635
+
636
+ <div class="method-source-code" id="normalize-source">
637
+ <pre><span class="ruby-comment"># File lib/core/plugin/command.rb, line 9</span>
638
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">normalize</span>(<span class="ruby-identifier">reload</span>)
639
+ <span class="ruby-keyword">super</span>
640
+ <span class="ruby-keyword">end</span></pre>
641
+ </div><!-- normalize-source -->
642
+
643
+ </div>
644
+
645
+
646
+
647
+
648
+ </div><!-- normalize-method -->
649
+
650
+
651
+ <div id="method-i-subcommand-3D" class="method-detail ">
652
+
653
+ <div class="method-heading">
654
+ <span class="method-name">subcommand=</span><span
655
+ class="method-args">(subcommand)</span>
656
+ <span class="method-click-advice">click to toggle source</span>
657
+ </div>
658
+
659
+
660
+ <div class="method-description">
661
+
662
+
663
+
664
+
665
+
666
+ <div class="method-source-code" id="subcommand-3D-source">
667
+ <pre><span class="ruby-comment"># File lib/core/plugin/command.rb, line 70</span>
668
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">subcommand=</span><span class="ruby-identifier">subcommand</span>
669
+ <span class="ruby-keyword">unless</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">subcommand</span>)
670
+ <span class="ruby-identifier">set</span>(<span class="ruby-value">:subcommand</span>, <span class="ruby-identifier">new</span>(<span class="ruby-identifier">hash</span>(<span class="ruby-identifier">subcommand</span>)))
671
+ <span class="ruby-keyword">end</span>
672
+ <span class="ruby-keyword">end</span></pre>
673
+ </div><!-- subcommand-3D-source -->
674
+
675
+ </div>
676
+
677
+
678
+
679
+
680
+ </div><!-- subcommand-3D-method -->
681
+
682
+
683
+ <div id="method-i-to_s" class="method-detail ">
684
+
685
+ <div class="method-heading">
686
+ <span class="method-name">to_s</span><span
687
+ class="method-args">()</span>
688
+ <span class="method-click-advice">click to toggle source</span>
689
+ </div>
690
+
691
+
692
+ <div class="method-description">
693
+
694
+
695
+
696
+
697
+
698
+ <div class="method-source-code" id="to_s-source">
699
+ <pre><span class="ruby-comment"># File lib/core/plugin/command.rb, line 15</span>
700
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
701
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">build</span>(<span class="ruby-identifier">export</span>)
702
+ <span class="ruby-keyword">end</span></pre>
703
+ </div><!-- to_s-source -->
704
+
705
+ </div>
706
+
707
+
708
+
709
+
710
+ </div><!-- to_s-method -->
711
+
712
+
713
+ </section><!-- public-instance-method-details -->
714
+
715
+ </section><!-- 5Buntitled-5D -->
716
+
717
+ </div><!-- documentation -->
718
+
719
+
720
+ <footer id="validator-badges">
721
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
722
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
723
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
724
+ </footer>
725
+