action_command 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.byebug_history +5 -0
- data/.codeclimate.yml +1 -0
- data/.rubocop.yml +4 -0
- data/Gemfile.lock +33 -6
- data/README.md +62 -0
- data/action_command.gemspec +3 -0
- data/doc/ActionCommand/Executable.html +106 -19
- data/doc/ActionCommand/InputOutput.html +203 -70
- data/doc/ActionCommand/Result.html +938 -131
- data/doc/ActionCommand.html +405 -82
- data/doc/_index.html +45 -1
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +61 -2
- data/doc/index.html +61 -2
- data/doc/method_list.html +224 -14
- data/doc/top-level-namespace.html +1 -1
- data/lib/action_command/executable.rb +6 -0
- data/lib/action_command/executable_transaction.rb +27 -0
- data/lib/action_command/input_output.rb +5 -0
- data/lib/action_command/log_parser.rb +105 -0
- data/lib/action_command/pretty_print_log_action.rb +114 -0
- data/lib/action_command/result.rb +106 -16
- data/lib/action_command/utils.rb +0 -5
- data/lib/action_command/version.rb +1 -1
- data/lib/action_command.rb +53 -6
- metadata +48 -2
data/doc/_index.html
CHANGED
@@ -104,6 +104,13 @@
|
|
104
104
|
|
105
105
|
</li>
|
106
106
|
|
107
|
+
<li>
|
108
|
+
<span class='object_link'><a href="ActionCommand/ExecutableTransaction.html" title="ActionCommand::ExecutableTransaction (class)">ExecutableTransaction</a></span>
|
109
|
+
|
110
|
+
<small>(ActionCommand)</small>
|
111
|
+
|
112
|
+
</li>
|
113
|
+
|
107
114
|
</ul>
|
108
115
|
</ul>
|
109
116
|
|
@@ -123,6 +130,43 @@
|
|
123
130
|
</ul>
|
124
131
|
|
125
132
|
|
133
|
+
<ul id="alpha_L" class="alpha">
|
134
|
+
<li class="letter">L</li>
|
135
|
+
<ul>
|
136
|
+
|
137
|
+
<li>
|
138
|
+
<span class='object_link'><a href="ActionCommand/LogMessage.html" title="ActionCommand::LogMessage (class)">LogMessage</a></span>
|
139
|
+
|
140
|
+
<small>(ActionCommand)</small>
|
141
|
+
|
142
|
+
</li>
|
143
|
+
|
144
|
+
<li>
|
145
|
+
<span class='object_link'><a href="ActionCommand/LogParser.html" title="ActionCommand::LogParser (class)">LogParser</a></span>
|
146
|
+
|
147
|
+
<small>(ActionCommand)</small>
|
148
|
+
|
149
|
+
</li>
|
150
|
+
|
151
|
+
</ul>
|
152
|
+
</ul>
|
153
|
+
|
154
|
+
|
155
|
+
<ul id="alpha_P" class="alpha">
|
156
|
+
<li class="letter">P</li>
|
157
|
+
<ul>
|
158
|
+
|
159
|
+
<li>
|
160
|
+
<span class='object_link'><a href="ActionCommand/PrettyPrintLogAction.html" title="ActionCommand::PrettyPrintLogAction (class)">PrettyPrintLogAction</a></span>
|
161
|
+
|
162
|
+
<small>(ActionCommand)</small>
|
163
|
+
|
164
|
+
</li>
|
165
|
+
|
166
|
+
</ul>
|
167
|
+
</ul>
|
168
|
+
|
169
|
+
|
126
170
|
<ul id="alpha_R" class="alpha">
|
127
171
|
<li class="letter">R</li>
|
128
172
|
<ul>
|
@@ -161,7 +205,7 @@
|
|
161
205
|
</div>
|
162
206
|
|
163
207
|
<div id="footer">
|
164
|
-
Generated on
|
208
|
+
Generated on Mon Mar 7 14:27:16 2016 by
|
165
209
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
166
210
|
0.8.7.6 (ruby-2.2.3).
|
167
211
|
</div>
|
data/doc/class_list.html
CHANGED
@@ -50,7 +50,7 @@
|
|
50
50
|
|
51
51
|
<ul id="full_list" class="class">
|
52
52
|
<li><span class='object_link'><a href="top-level-namespace.html" title="Top Level Namespace (root)">Top Level Namespace</a></span></li>
|
53
|
-
<li><a class='toggle'></a> <span class='object_link'><a href="ActionCommand.html" title="ActionCommand (module)">ActionCommand</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><span class='object_link'><a href="ActionCommand/Executable.html" title="ActionCommand::Executable (class)">Executable</a></span> < Object<small class='search_info'>ActionCommand</small></li><li><span class='object_link'><a href="ActionCommand/InputOutput.html" title="ActionCommand::InputOutput (class)">InputOutput</a></span> < Object<small class='search_info'>ActionCommand</small></li><li><span class='object_link'><a href="ActionCommand/Result.html" title="ActionCommand::Result (class)">Result</a></span> < Object<small class='search_info'>ActionCommand</small></li><li><span class='object_link'><a href="ActionCommand/Utils.html" title="ActionCommand::Utils (class)">Utils</a></span> < Object<small class='search_info'>ActionCommand</small></li></ul>
|
53
|
+
<li><a class='toggle'></a> <span class='object_link'><a href="ActionCommand.html" title="ActionCommand (module)">ActionCommand</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><span class='object_link'><a href="ActionCommand/Executable.html" title="ActionCommand::Executable (class)">Executable</a></span> < Object<small class='search_info'>ActionCommand</small></li><li><span class='object_link'><a href="ActionCommand/ExecutableTransaction.html" title="ActionCommand::ExecutableTransaction (class)">ExecutableTransaction</a></span> < Executable<small class='search_info'>ActionCommand</small></li><li><span class='object_link'><a href="ActionCommand/InputOutput.html" title="ActionCommand::InputOutput (class)">InputOutput</a></span> < Object<small class='search_info'>ActionCommand</small></li><li><span class='object_link'><a href="ActionCommand/LogMessage.html" title="ActionCommand::LogMessage (class)">LogMessage</a></span> < Object<small class='search_info'>ActionCommand</small></li><li><span class='object_link'><a href="ActionCommand/LogParser.html" title="ActionCommand::LogParser (class)">LogParser</a></span> < Object<small class='search_info'>ActionCommand</small></li><li><span class='object_link'><a href="ActionCommand/PrettyPrintLogAction.html" title="ActionCommand::PrettyPrintLogAction (class)">PrettyPrintLogAction</a></span> < Executable<small class='search_info'>ActionCommand</small></li><li><span class='object_link'><a href="ActionCommand/Result.html" title="ActionCommand::Result (class)">Result</a></span> < Object<small class='search_info'>ActionCommand</small></li><li><span class='object_link'><a href="ActionCommand/Utils.html" title="ActionCommand::Utils (class)">Utils</a></span> < Object<small class='search_info'>ActionCommand</small></li></ul>
|
54
54
|
|
55
55
|
</ul>
|
56
56
|
</div>
|
data/doc/file.README.html
CHANGED
@@ -148,7 +148,7 @@ lib/tasks/my_task.rake, and configure your actions as task with one line:</p>
|
|
148
148
|
|
149
149
|
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_namespace'>namespace</span> <span class='symbol'>:my_namespace</span> <span class='kw'>do</span>
|
150
150
|
|
151
|
-
<span class='comment'># use [:
|
151
|
+
<span class='comment'># use [:environment] as the last parameter if you want to do things that require
|
152
152
|
</span> <span class='comment'># rails startup in your command, like connecting to your database.
|
153
153
|
</span> <span class='const'>ActionCommand</span><span class='period'>.</span><span class='id identifier rubyid_install_rake'>install_rake</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:hello_world</span><span class='comma'>,</span> <span class='const'>HelloWorldCommand</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
154
154
|
|
@@ -223,6 +223,65 @@ execute_internal method you should call additional actions via:</p>
|
|
223
223
|
<span class='kw'>end</span>
|
224
224
|
</code></pre>
|
225
225
|
|
226
|
+
<h3 id="label-Error+Handling+and+Logging">Error Handling and Logging</h3>
|
227
|
+
|
228
|
+
<h4 id="label-Error+Handling">Error Handling</h4>
|
229
|
+
|
230
|
+
<p>Within a command, you can generically fail with an error message, or fail
|
231
|
+
with a particular custom error code</p>
|
232
|
+
|
233
|
+
<pre class="code ruby"><code class="ruby"><span class='kw'>def</span> <span class='id identifier rubyid_execute_internal'>execute_internal</span><span class='lparen'>(</span><span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span>
|
234
|
+
<span class='comment'># fail generically
|
235
|
+
</span> <span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_failed'>failed</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Something bad happened</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
236
|
+
|
237
|
+
<span class='id identifier rubyid_my_custom_error'>my_custom_error</span> <span class='op'>=</span> <span class='int'>10</span>
|
238
|
+
<span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_failed_with_code'>failed_with_code</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Something bad happened</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_my_custom_error'>my_custom_error</span><span class='rparen'>)</span>
|
239
|
+
<span class='kw'>end</span>
|
240
|
+
</code></pre>
|
241
|
+
|
242
|
+
<p>You can check for errors in the result:</p>
|
243
|
+
|
244
|
+
<pre class="code ruby"><code class="ruby">result = ActionCommand.execute_rails...
|
245
|
+
|
246
|
+
return unless result.ok? # generic failure
|
247
|
+
|
248
|
+
switch(result.result_code)
|
249
|
+
when ActionCommand::RESULT_CODE_OK
|
250
|
+
...
|
251
|
+
when my_custom_error
|
252
|
+
...
|
253
|
+
end
|
254
|
+
</code></pre>
|
255
|
+
|
256
|
+
<h4 id="label-Logging">Logging</h4>
|
257
|
+
|
258
|
+
<p>You can turn on logging either globally, or for specific command
|
259
|
+
executions:</p>
|
260
|
+
|
261
|
+
<pre class="code ruby"><code class="ruby"><span class='comment'># turn it on globally
|
262
|
+
</span> <span class='const'>ActionCommand</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span> <span class='op'>=</span> <span class='id identifier rubyid_your_logger'>your_logger</span>
|
263
|
+
|
264
|
+
<span class='comment'># turn it on only for this command
|
265
|
+
</span> <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
266
|
+
<span class='label'>logger:</span> <span class='id identifier rubyid_your_logger'>your_logger</span><span class='comma'>,</span>
|
267
|
+
<span class='comment'># your other parameters
|
268
|
+
</span> <span class='rbrace'>}</span>
|
269
|
+
<span class='const'>ActionCommand</span><span class='period'>.</span><span class='id identifier rubyid_execute_rails'>execute_rails</span><span class='lparen'>(</span><span class='const'>YourCommand</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
|
270
|
+
</code></pre>
|
271
|
+
|
272
|
+
<p>When logging is on, the logger will receive single-line JSON messages at
|
273
|
+
the debugging level for all command inputs and outputs. All child commands
|
274
|
+
under a parent will automatically be tagged with a serial number for
|
275
|
+
correlation. The result looks like this:</p>
|
276
|
+
|
277
|
+
<p>TODO</p>
|
278
|
+
|
279
|
+
<p>You can also optionally add your own entries to the log by calling
|
280
|
+
<code>result.debug</code>, <code>result.info</code>, or
|
281
|
+
<code>result.failed</code>. If you pass these calls a string, they will
|
282
|
+
include it as <code>msg</code> in the JSON. If you pass them a hash, its
|
283
|
+
contents will be merged into the JSON.</p>
|
284
|
+
|
226
285
|
<h2 id="label-Development">Development</h2>
|
227
286
|
|
228
287
|
<p>After checking out the repo, run <code>bin/setup</code> to install
|
@@ -253,7 +312,7 @@ href="http://opensource.org/licenses/MIT">MIT License</a>.</p>
|
|
253
312
|
</div></div>
|
254
313
|
|
255
314
|
<div id="footer">
|
256
|
-
Generated on
|
315
|
+
Generated on Mon Mar 7 14:27:17 2016 by
|
257
316
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
258
317
|
0.8.7.6 (ruby-2.2.3).
|
259
318
|
</div>
|
data/doc/index.html
CHANGED
@@ -148,7 +148,7 @@ lib/tasks/my_task.rake, and configure your actions as task with one line:</p>
|
|
148
148
|
|
149
149
|
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_namespace'>namespace</span> <span class='symbol'>:my_namespace</span> <span class='kw'>do</span>
|
150
150
|
|
151
|
-
<span class='comment'># use [:
|
151
|
+
<span class='comment'># use [:environment] as the last parameter if you want to do things that require
|
152
152
|
</span> <span class='comment'># rails startup in your command, like connecting to your database.
|
153
153
|
</span> <span class='const'>ActionCommand</span><span class='period'>.</span><span class='id identifier rubyid_install_rake'>install_rake</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='symbol'>:hello_world</span><span class='comma'>,</span> <span class='const'>HelloWorldCommand</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
154
154
|
|
@@ -223,6 +223,65 @@ execute_internal method you should call additional actions via:</p>
|
|
223
223
|
<span class='kw'>end</span>
|
224
224
|
</code></pre>
|
225
225
|
|
226
|
+
<h3 id="label-Error+Handling+and+Logging">Error Handling and Logging</h3>
|
227
|
+
|
228
|
+
<h4 id="label-Error+Handling">Error Handling</h4>
|
229
|
+
|
230
|
+
<p>Within a command, you can generically fail with an error message, or fail
|
231
|
+
with a particular custom error code</p>
|
232
|
+
|
233
|
+
<pre class="code ruby"><code class="ruby"><span class='kw'>def</span> <span class='id identifier rubyid_execute_internal'>execute_internal</span><span class='lparen'>(</span><span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span>
|
234
|
+
<span class='comment'># fail generically
|
235
|
+
</span> <span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_failed'>failed</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Something bad happened</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
236
|
+
|
237
|
+
<span class='id identifier rubyid_my_custom_error'>my_custom_error</span> <span class='op'>=</span> <span class='int'>10</span>
|
238
|
+
<span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_failed_with_code'>failed_with_code</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Something bad happened</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_my_custom_error'>my_custom_error</span><span class='rparen'>)</span>
|
239
|
+
<span class='kw'>end</span>
|
240
|
+
</code></pre>
|
241
|
+
|
242
|
+
<p>You can check for errors in the result:</p>
|
243
|
+
|
244
|
+
<pre class="code ruby"><code class="ruby">result = ActionCommand.execute_rails...
|
245
|
+
|
246
|
+
return unless result.ok? # generic failure
|
247
|
+
|
248
|
+
switch(result.result_code)
|
249
|
+
when ActionCommand::RESULT_CODE_OK
|
250
|
+
...
|
251
|
+
when my_custom_error
|
252
|
+
...
|
253
|
+
end
|
254
|
+
</code></pre>
|
255
|
+
|
256
|
+
<h4 id="label-Logging">Logging</h4>
|
257
|
+
|
258
|
+
<p>You can turn on logging either globally, or for specific command
|
259
|
+
executions:</p>
|
260
|
+
|
261
|
+
<pre class="code ruby"><code class="ruby"><span class='comment'># turn it on globally
|
262
|
+
</span> <span class='const'>ActionCommand</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span> <span class='op'>=</span> <span class='id identifier rubyid_your_logger'>your_logger</span>
|
263
|
+
|
264
|
+
<span class='comment'># turn it on only for this command
|
265
|
+
</span> <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
266
|
+
<span class='label'>logger:</span> <span class='id identifier rubyid_your_logger'>your_logger</span><span class='comma'>,</span>
|
267
|
+
<span class='comment'># your other parameters
|
268
|
+
</span> <span class='rbrace'>}</span>
|
269
|
+
<span class='const'>ActionCommand</span><span class='period'>.</span><span class='id identifier rubyid_execute_rails'>execute_rails</span><span class='lparen'>(</span><span class='const'>YourCommand</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
|
270
|
+
</code></pre>
|
271
|
+
|
272
|
+
<p>When logging is on, the logger will receive single-line JSON messages at
|
273
|
+
the debugging level for all command inputs and outputs. All child commands
|
274
|
+
under a parent will automatically be tagged with a serial number for
|
275
|
+
correlation. The result looks like this:</p>
|
276
|
+
|
277
|
+
<p>TODO</p>
|
278
|
+
|
279
|
+
<p>You can also optionally add your own entries to the log by calling
|
280
|
+
<code>result.debug</code>, <code>result.info</code>, or
|
281
|
+
<code>result.failed</code>. If you pass these calls a string, they will
|
282
|
+
include it as <code>msg</code> in the JSON. If you pass them a hash, its
|
283
|
+
contents will be merged into the JSON.</p>
|
284
|
+
|
226
285
|
<h2 id="label-Development">Development</h2>
|
227
286
|
|
228
287
|
<p>After checking out the repo, run <code>bin/setup</code> to install
|
@@ -253,7 +312,7 @@ href="http://opensource.org/licenses/MIT">MIT License</a>.</p>
|
|
253
312
|
</div></div>
|
254
313
|
|
255
314
|
<div id="footer">
|
256
|
-
Generated on
|
315
|
+
Generated on Mon Mar 7 14:27:16 2016 by
|
257
316
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
258
317
|
0.8.7.6 (ruby-2.2.3).
|
259
318
|
</div>
|
data/doc/method_list.html
CHANGED
@@ -63,12 +63,36 @@
|
|
63
63
|
</li>
|
64
64
|
|
65
65
|
|
66
|
+
<li class="r1 ">
|
67
|
+
<span class='object_link'><a href="ActionCommand/Executable.html#api_context%3F-instance_method" title="ActionCommand::Executable#api_context? (method)">#api_context?</a></span>
|
68
|
+
<small>ActionCommand::Executable</small>
|
69
|
+
</li>
|
70
|
+
|
71
|
+
|
72
|
+
<li class="r2 ">
|
73
|
+
<span class='object_link'><a href="ActionCommand.html#check_params-class_method" title="ActionCommand.check_params (method)">check_params</a></span>
|
74
|
+
<small>ActionCommand</small>
|
75
|
+
</li>
|
76
|
+
|
77
|
+
|
66
78
|
<li class="r1 ">
|
67
79
|
<span class='object_link'><a href="ActionCommand/Executable.html#child_context%3F-instance_method" title="ActionCommand::Executable#child_context? (method)">#child_context?</a></span>
|
68
80
|
<small>ActionCommand::Executable</small>
|
69
81
|
</li>
|
70
82
|
|
71
83
|
|
84
|
+
<li class="r2 ">
|
85
|
+
<span class='object_link'><a href="ActionCommand/LogMessage.html#cmd-instance_method" title="ActionCommand::LogMessage#cmd (method)">#cmd</a></span>
|
86
|
+
<small>ActionCommand::LogMessage</small>
|
87
|
+
</li>
|
88
|
+
|
89
|
+
|
90
|
+
<li class="r1 ">
|
91
|
+
<span class='object_link'><a href="ActionCommand/LogMessage.html#command%3F-instance_method" title="ActionCommand::LogMessage#command? (method)">#command?</a></span>
|
92
|
+
<small>ActionCommand::LogMessage</small>
|
93
|
+
</li>
|
94
|
+
|
95
|
+
|
72
96
|
<li class="r2 ">
|
73
97
|
<span class='object_link'><a href="ActionCommand.html#create_and_execute-class_method" title="ActionCommand.create_and_execute (method)">create_and_execute</a></span>
|
74
98
|
<small>ActionCommand</small>
|
@@ -87,6 +111,18 @@
|
|
87
111
|
</li>
|
88
112
|
|
89
113
|
|
114
|
+
<li class="r1 ">
|
115
|
+
<span class='object_link'><a href="ActionCommand/Result.html#debug-instance_method" title="ActionCommand::Result#debug (method)">#debug</a></span>
|
116
|
+
<small>ActionCommand::Result</small>
|
117
|
+
</li>
|
118
|
+
|
119
|
+
|
120
|
+
<li class="r2 ">
|
121
|
+
<span class='object_link'><a href="ActionCommand/LogMessage.html#depth-instance_method" title="ActionCommand::LogMessage#depth (method)">#depth</a></span>
|
122
|
+
<small>ActionCommand::LogMessage</small>
|
123
|
+
</li>
|
124
|
+
|
125
|
+
|
90
126
|
<li class="r1 ">
|
91
127
|
<span class='object_link'><a href="ActionCommand/InputOutput.html#desc-instance_method" title="ActionCommand::InputOutput#desc (method)">#desc</a></span>
|
92
128
|
<small>ActionCommand::InputOutput</small>
|
@@ -100,11 +136,47 @@
|
|
100
136
|
|
101
137
|
|
102
138
|
<li class="r1 ">
|
139
|
+
<span class='object_link'><a href="ActionCommand/PrettyPrintLogAction.html#describe_io-class_method" title="ActionCommand::PrettyPrintLogAction.describe_io (method)">describe_io</a></span>
|
140
|
+
<small>ActionCommand::PrettyPrintLogAction</small>
|
141
|
+
</li>
|
142
|
+
|
143
|
+
|
144
|
+
<li class="r2 ">
|
145
|
+
<span class='object_link'><a href="ActionCommand/PrettyPrintLogAction.html#dest-instance_method" title="ActionCommand::PrettyPrintLogAction#dest (method)">#dest</a></span>
|
146
|
+
<small>ActionCommand::PrettyPrintLogAction</small>
|
147
|
+
</li>
|
148
|
+
|
149
|
+
|
150
|
+
<li class="r1 ">
|
151
|
+
<span class='object_link'><a href="ActionCommand/LogParser.html#eof%3F-instance_method" title="ActionCommand::LogParser#eof? (method)">#eof?</a></span>
|
152
|
+
<small>ActionCommand::LogParser</small>
|
153
|
+
</li>
|
154
|
+
|
155
|
+
|
156
|
+
<li class="r2 ">
|
157
|
+
<span class='object_link'><a href="ActionCommand/Result.html#error-instance_method" title="ActionCommand::Result#error (method)">#error</a></span>
|
158
|
+
<small>ActionCommand::Result</small>
|
159
|
+
</li>
|
160
|
+
|
161
|
+
|
162
|
+
<li class="r1 ">
|
163
|
+
<span class='object_link'><a href="ActionCommand/ExecutableTransaction.html#execute-instance_method" title="ActionCommand::ExecutableTransaction#execute (method)">#execute</a></span>
|
164
|
+
<small>ActionCommand::ExecutableTransaction</small>
|
165
|
+
</li>
|
166
|
+
|
167
|
+
|
168
|
+
<li class="r2 ">
|
103
169
|
<span class='object_link'><a href="ActionCommand/Executable.html#execute-instance_method" title="ActionCommand::Executable#execute (method)">#execute</a></span>
|
104
170
|
<small>ActionCommand::Executable</small>
|
105
171
|
</li>
|
106
172
|
|
107
173
|
|
174
|
+
<li class="r1 ">
|
175
|
+
<span class='object_link'><a href="ActionCommand.html#execute_api-class_method" title="ActionCommand.execute_api (method)">execute_api</a></span>
|
176
|
+
<small>ActionCommand</small>
|
177
|
+
</li>
|
178
|
+
|
179
|
+
|
108
180
|
<li class="r2 ">
|
109
181
|
<span class='object_link'><a href="ActionCommand.html#execute_child-class_method" title="ActionCommand.execute_child (method)">execute_child</a></span>
|
110
182
|
<small>ActionCommand</small>
|
@@ -142,41 +214,53 @@
|
|
142
214
|
|
143
215
|
|
144
216
|
<li class="r2 ">
|
217
|
+
<span class='object_link'><a href="ActionCommand/Result.html#failed_with_code-instance_method" title="ActionCommand::Result#failed_with_code (method)">#failed_with_code</a></span>
|
218
|
+
<small>ActionCommand::Result</small>
|
219
|
+
</li>
|
220
|
+
|
221
|
+
|
222
|
+
<li class="r1 ">
|
145
223
|
<span class='object_link'><a href="ActionCommand/Utils.html#find_object-class_method" title="ActionCommand::Utils.find_object (method)">find_object</a></span>
|
146
224
|
<small>ActionCommand::Utils</small>
|
147
225
|
</li>
|
148
226
|
|
149
227
|
|
150
|
-
<li class="
|
228
|
+
<li class="r2 ">
|
151
229
|
<span class='object_link'><a href="ActionCommand/InputOutput.html#help%3F-instance_method" title="ActionCommand::InputOutput#help? (method)">#help?</a></span>
|
152
230
|
<small>ActionCommand::InputOutput</small>
|
153
231
|
</li>
|
154
232
|
|
155
233
|
|
156
|
-
<li class="
|
234
|
+
<li class="r1 ">
|
157
235
|
<span class='object_link'><a href="ActionCommand/Result.html#info-instance_method" title="ActionCommand::Result#info (method)">#info</a></span>
|
158
236
|
<small>ActionCommand::Result</small>
|
159
237
|
</li>
|
160
238
|
|
161
239
|
|
162
|
-
<li class="
|
163
|
-
<span class='object_link'><a href="ActionCommand/
|
164
|
-
<small>ActionCommand::
|
240
|
+
<li class="r2 ">
|
241
|
+
<span class='object_link'><a href="ActionCommand/LogParser.html#initialize-instance_method" title="ActionCommand::LogParser#initialize (method)">#initialize</a></span>
|
242
|
+
<small>ActionCommand::LogParser</small>
|
165
243
|
</li>
|
166
244
|
|
167
245
|
|
168
|
-
<li class="
|
246
|
+
<li class="r1 ">
|
169
247
|
<span class='object_link'><a href="ActionCommand/Result.html#initialize-instance_method" title="ActionCommand::Result#initialize (method)">#initialize</a></span>
|
170
248
|
<small>ActionCommand::Result</small>
|
171
249
|
</li>
|
172
250
|
|
173
251
|
|
174
|
-
<li class="
|
252
|
+
<li class="r2 ">
|
175
253
|
<span class='object_link'><a href="ActionCommand/Executable.html#initialize-instance_method" title="ActionCommand::Executable#initialize (method)">#initialize</a></span>
|
176
254
|
<small>ActionCommand::Executable</small>
|
177
255
|
</li>
|
178
256
|
|
179
257
|
|
258
|
+
<li class="r1 ">
|
259
|
+
<span class='object_link'><a href="ActionCommand/InputOutput.html#initialize-instance_method" title="ActionCommand::InputOutput#initialize (method)">#initialize</a></span>
|
260
|
+
<small>ActionCommand::InputOutput</small>
|
261
|
+
</li>
|
262
|
+
|
263
|
+
|
180
264
|
<li class="r2 ">
|
181
265
|
<span class='object_link'><a href="ActionCommand/InputOutput.html#input-instance_method" title="ActionCommand::InputOutput#input (method)">#input</a></span>
|
182
266
|
<small>ActionCommand::InputOutput</small>
|
@@ -184,53 +268,137 @@
|
|
184
268
|
|
185
269
|
|
186
270
|
<li class="r1 ">
|
271
|
+
<span class='object_link'><a href="ActionCommand/InputOutput.html#input_count-instance_method" title="ActionCommand::InputOutput#input_count (method)">#input_count</a></span>
|
272
|
+
<small>ActionCommand::InputOutput</small>
|
273
|
+
</li>
|
274
|
+
|
275
|
+
|
276
|
+
<li class="r2 ">
|
187
277
|
<span class='object_link'><a href="ActionCommand.html#install_rake-class_method" title="ActionCommand.install_rake (method)">install_rake</a></span>
|
188
278
|
<small>ActionCommand</small>
|
189
279
|
</li>
|
190
280
|
|
191
281
|
|
282
|
+
<li class="r1 ">
|
283
|
+
<span class='object_link'><a href="ActionCommand/LogMessage.html#key-instance_method" title="ActionCommand::LogMessage#key (method)">#key</a></span>
|
284
|
+
<small>ActionCommand::LogMessage</small>
|
285
|
+
</li>
|
286
|
+
|
287
|
+
|
192
288
|
<li class="r2 ">
|
289
|
+
<span class='object_link'><a href="ActionCommand/LogMessage.html#key%3F-instance_method" title="ActionCommand::LogMessage#key? (method)">#key?</a></span>
|
290
|
+
<small>ActionCommand::LogMessage</small>
|
291
|
+
</li>
|
292
|
+
|
293
|
+
|
294
|
+
<li class="r1 ">
|
193
295
|
<span class='object_link'><a href="ActionCommand/Result.html#key%3F-instance_method" title="ActionCommand::Result#key? (method)">#key?</a></span>
|
194
296
|
<small>ActionCommand::Result</small>
|
195
297
|
</li>
|
196
298
|
|
197
299
|
|
198
|
-
<li class="
|
300
|
+
<li class="r2 ">
|
199
301
|
<span class='object_link'><a href="ActionCommand/InputOutput.html#keys-instance_method" title="ActionCommand::InputOutput#keys (method)">#keys</a></span>
|
200
302
|
<small>ActionCommand::InputOutput</small>
|
201
303
|
</li>
|
202
304
|
|
203
305
|
|
306
|
+
<li class="r1 ">
|
307
|
+
<span class='object_link'><a href="ActionCommand/LogMessage.html#kind-instance_method" title="ActionCommand::LogMessage#kind (method)">#kind</a></span>
|
308
|
+
<small>ActionCommand::LogMessage</small>
|
309
|
+
</li>
|
310
|
+
|
311
|
+
|
312
|
+
<li class="r2 ">
|
313
|
+
<span class='object_link'><a href="ActionCommand/LogMessage.html#kind%3F-instance_method" title="ActionCommand::LogMessage#kind? (method)">#kind?</a></span>
|
314
|
+
<small>ActionCommand::LogMessage</small>
|
315
|
+
</li>
|
316
|
+
|
317
|
+
|
318
|
+
<li class="r1 ">
|
319
|
+
<span class='object_link'><a href="ActionCommand/LogMessage.html#line-instance_method" title="ActionCommand::LogMessage#line (method)">#line</a></span>
|
320
|
+
<small>ActionCommand::LogMessage</small>
|
321
|
+
</li>
|
322
|
+
|
323
|
+
|
204
324
|
<li class="r2 ">
|
325
|
+
<span class='object_link'><a href="ActionCommand/Result.html#log_input-instance_method" title="ActionCommand::Result#log_input (method)">#log_input</a></span>
|
326
|
+
<small>ActionCommand::Result</small>
|
327
|
+
</li>
|
328
|
+
|
329
|
+
|
330
|
+
<li class="r1 ">
|
331
|
+
<span class='object_link'><a href="ActionCommand/Result.html#log_output-instance_method" title="ActionCommand::Result#log_output (method)">#log_output</a></span>
|
332
|
+
<small>ActionCommand::Result</small>
|
333
|
+
</li>
|
334
|
+
|
335
|
+
|
336
|
+
<li class="r2 ">
|
337
|
+
<span class='object_link'><a href="ActionCommand/Result.html#logger%3D-instance_method" title="ActionCommand::Result#logger= (method)">#logger=</a></span>
|
338
|
+
<small>ActionCommand::Result</small>
|
339
|
+
</li>
|
340
|
+
|
341
|
+
|
342
|
+
<li class="r1 ">
|
205
343
|
<span class='object_link'><a href="ActionCommand.html#logger%3D-class_method" title="ActionCommand.logger= (method)">logger=</a></span>
|
206
344
|
<small>ActionCommand</small>
|
207
345
|
</li>
|
208
346
|
|
209
347
|
|
348
|
+
<li class="r2 ">
|
349
|
+
<span class='object_link'><a href="ActionCommand/Result.html#logging%3F-instance_method" title="ActionCommand::Result#logging? (method)">#logging?</a></span>
|
350
|
+
<small>ActionCommand::Result</small>
|
351
|
+
</li>
|
352
|
+
|
353
|
+
|
210
354
|
<li class="r1 ">
|
355
|
+
<span class='object_link'><a href="ActionCommand/LogMessage.html#match_message%3F-instance_method" title="ActionCommand::LogMessage#match_message? (method)">#match_message?</a></span>
|
356
|
+
<small>ActionCommand::LogMessage</small>
|
357
|
+
</li>
|
358
|
+
|
359
|
+
|
360
|
+
<li class="r2 ">
|
361
|
+
<span class='object_link'><a href="ActionCommand/LogMessage.html#msg-instance_method" title="ActionCommand::LogMessage#msg (method)">#msg</a></span>
|
362
|
+
<small>ActionCommand::LogMessage</small>
|
363
|
+
</li>
|
364
|
+
|
365
|
+
|
366
|
+
<li class="r1 ">
|
367
|
+
<span class='object_link'><a href="ActionCommand/LogParser.html#next-instance_method" title="ActionCommand::LogParser#next (method)">#next</a></span>
|
368
|
+
<small>ActionCommand::LogParser</small>
|
369
|
+
</li>
|
370
|
+
|
371
|
+
|
372
|
+
<li class="r2 ">
|
211
373
|
<span class='object_link'><a href="ActionCommand/Result.html#ok%3F-instance_method" title="ActionCommand::Result#ok? (method)">#ok?</a></span>
|
212
374
|
<small>ActionCommand::Result</small>
|
213
375
|
</li>
|
214
376
|
|
215
377
|
|
216
|
-
<li class="
|
378
|
+
<li class="r1 ">
|
217
379
|
<span class='object_link'><a href="ActionCommand/InputOutput.html#output-instance_method" title="ActionCommand::InputOutput#output (method)">#output</a></span>
|
218
380
|
<small>ActionCommand::InputOutput</small>
|
219
381
|
</li>
|
220
382
|
|
221
383
|
|
222
|
-
<li class="
|
384
|
+
<li class="r2 ">
|
223
385
|
<span class='object_link'><a href="ActionCommand/Executable.html#parent-instance_method" title="ActionCommand::Executable#parent (method)">#parent</a></span>
|
224
386
|
<small>ActionCommand::Executable</small>
|
225
387
|
</li>
|
226
388
|
|
227
389
|
|
228
|
-
<li class="
|
390
|
+
<li class="r1 ">
|
229
391
|
<span class='object_link'><a href="ActionCommand/Result.html#pop-instance_method" title="ActionCommand::Result#pop (method)">#pop</a></span>
|
230
392
|
<small>ActionCommand::Result</small>
|
231
393
|
</li>
|
232
394
|
|
233
395
|
|
396
|
+
<li class="r2 ">
|
397
|
+
<span class='object_link'><a href="ActionCommand/LogMessage.html#populate-instance_method" title="ActionCommand::LogMessage#populate (method)">#populate</a></span>
|
398
|
+
<small>ActionCommand::LogMessage</small>
|
399
|
+
</li>
|
400
|
+
|
401
|
+
|
234
402
|
<li class="r1 ">
|
235
403
|
<span class='object_link'><a href="ActionCommand/InputOutput.html#print_output-instance_method" title="ActionCommand::InputOutput#print_output (method)">#print_output</a></span>
|
236
404
|
<small>ActionCommand::InputOutput</small>
|
@@ -274,11 +442,47 @@
|
|
274
442
|
|
275
443
|
|
276
444
|
<li class="r2 ">
|
445
|
+
<span class='object_link'><a href="ActionCommand/Result.html#result_code-instance_method" title="ActionCommand::Result#result_code (method)">#result_code</a></span>
|
446
|
+
<small>ActionCommand::Result</small>
|
447
|
+
</li>
|
448
|
+
|
449
|
+
|
450
|
+
<li class="r1 ">
|
451
|
+
<span class='object_link'><a href="ActionCommand/LogMessage.html#root%3F-instance_method" title="ActionCommand::LogMessage#root? (method)">#root?</a></span>
|
452
|
+
<small>ActionCommand::LogMessage</small>
|
453
|
+
</li>
|
454
|
+
|
455
|
+
|
456
|
+
<li class="r2 ">
|
457
|
+
<span class='object_link'><a href="ActionCommand/Result.html#root_command-instance_method" title="ActionCommand::Result#root_command (method)">#root_command</a></span>
|
458
|
+
<small>ActionCommand::Result</small>
|
459
|
+
</li>
|
460
|
+
|
461
|
+
|
462
|
+
<li class="r1 ">
|
277
463
|
<span class='object_link'><a href="ActionCommand/Executable.html#root_context-instance_method" title="ActionCommand::Executable#root_context (method)">#root_context</a></span>
|
278
464
|
<small>ActionCommand::Executable</small>
|
279
465
|
</li>
|
280
466
|
|
281
467
|
|
468
|
+
<li class="r2 ">
|
469
|
+
<span class='object_link'><a href="ActionCommand/Result.html#sequence-instance_method" title="ActionCommand::Result#sequence (method)">#sequence</a></span>
|
470
|
+
<small>ActionCommand::Result</small>
|
471
|
+
</li>
|
472
|
+
|
473
|
+
|
474
|
+
<li class="r1 ">
|
475
|
+
<span class='object_link'><a href="ActionCommand/PrettyPrintLogAction.html#sequence-instance_method" title="ActionCommand::PrettyPrintLogAction#sequence (method)">#sequence</a></span>
|
476
|
+
<small>ActionCommand::PrettyPrintLogAction</small>
|
477
|
+
</li>
|
478
|
+
|
479
|
+
|
480
|
+
<li class="r2 ">
|
481
|
+
<span class='object_link'><a href="ActionCommand/LogMessage.html#sequence-instance_method" title="ActionCommand::LogMessage#sequence (method)">#sequence</a></span>
|
482
|
+
<small>ActionCommand::LogMessage</small>
|
483
|
+
</li>
|
484
|
+
|
485
|
+
|
282
486
|
<li class="r1 ">
|
283
487
|
<span class='object_link'><a href="ActionCommand/InputOutput.html#should_validate-instance_method" title="ActionCommand::InputOutput#should_validate (method)">#should_validate</a></span>
|
284
488
|
<small>ActionCommand::InputOutput</small>
|
@@ -292,24 +496,30 @@
|
|
292
496
|
|
293
497
|
|
294
498
|
<li class="r1 ">
|
499
|
+
<span class='object_link'><a href="ActionCommand/PrettyPrintLogAction.html#source-instance_method" title="ActionCommand::PrettyPrintLogAction#source (method)">#source</a></span>
|
500
|
+
<small>ActionCommand::PrettyPrintLogAction</small>
|
501
|
+
</li>
|
502
|
+
|
503
|
+
|
504
|
+
<li class="r2 ">
|
295
505
|
<span class='object_link'><a href="ActionCommand/Executable.html#test-instance_method" title="ActionCommand::Executable#test (method)">#test</a></span>
|
296
506
|
<small>ActionCommand::Executable</small>
|
297
507
|
</li>
|
298
508
|
|
299
509
|
|
300
|
-
<li class="
|
510
|
+
<li class="r1 ">
|
301
511
|
<span class='object_link'><a href="ActionCommand/Executable.html#test_context%3F-instance_method" title="ActionCommand::Executable#test_context? (method)">#test_context?</a></span>
|
302
512
|
<small>ActionCommand::Executable</small>
|
303
513
|
</li>
|
304
514
|
|
305
515
|
|
306
|
-
<li class="
|
516
|
+
<li class="r2 ">
|
307
517
|
<span class='object_link'><a href="ActionCommand/Executable.html#testing-instance_method" title="ActionCommand::Executable#testing (method)">#testing</a></span>
|
308
518
|
<small>ActionCommand::Executable</small>
|
309
519
|
</li>
|
310
520
|
|
311
521
|
|
312
|
-
<li class="
|
522
|
+
<li class="r1 ">
|
313
523
|
<span class='object_link'><a href="ActionCommand/InputOutput.html#validate_input-instance_method" title="ActionCommand::InputOutput#validate_input (method)">#validate_input</a></span>
|
314
524
|
<small>ActionCommand::InputOutput</small>
|
315
525
|
</li>
|