Class: ImapSyncTest
- Inherits:
-
Executo::Command
- Object
- Executo::Command
- ImapSyncTest
- Defined in:
- lib/executo/commands/imapsync_test.rb
Overview
Call with: ImapSyncTest.call(mailbox_id: ‘abc’, parameter_values: 1, user1: 1, password1: 1, host2: 2, user2: 2, password2: 2)
Instance Attribute Summary
Attributes inherited from Executo::Command
#executo_id, #exitstatus, #parameter_values, #status, #stderr, #stdout
Instance Method Summary collapse
-
#completed(results) ⇒ Object
Process completed output from the command.
-
#failed(results) ⇒ Object
Process failed output from the command.
-
#finished(results) ⇒ Object
Process final output from the command.
-
#output(results) ⇒ Object
Process intermediate output from the command.
-
#started(results) ⇒ Object
Callback for ‘started’ messages.
Methods inherited from Executo::Command
#call, #initialize, process_feedback, #process_results, #setup_logger
Constructor Details
This class inherits a constructor from Executo::Command
Instance Method Details
#completed(results) ⇒ Object
Process completed output from the command. results contain stdout/stderr/exitstatus/runtime_seconds
24 25 26 |
# File 'lib/executo/commands/imapsync_test.rb', line 24 def completed(results) binding.pry end |
#failed(results) ⇒ Object
Process failed output from the command. results contain stdout/stderr/exitstatus/runtime_seconds
29 30 |
# File 'lib/executo/commands/imapsync_test.rb', line 29 def failed(results) end |
#finished(results) ⇒ Object
Process final output from the command. results contain runtime_seconds
33 34 |
# File 'lib/executo/commands/imapsync_test.rb', line 33 def finished(results) end |
#output(results) ⇒ Object
Process intermediate output from the command. results contain stdout/stderr/runtime_seconds
19 20 21 |
# File 'lib/executo/commands/imapsync_test.rb', line 19 def output(results) find_current_status(results[:stdout]) end |
#started(results) ⇒ Object
Callback for ‘started’ messages. results contain stdout/stderr, atribute mailbox_id will already be set.
14 15 16 |
# File 'lib/executo/commands/imapsync_test.rb', line 14 def started(results) logger.info "Started #{mailbox_id}" end |