Class: Train::Extras::CommandWrapperBase
- Inherits:
-
Object
- Object
- Train::Extras::CommandWrapperBase
- Defined in:
- lib/train/extras/command_wrapper.rb
Overview
Define the interface of all command wrappers.
Direct Known Subclasses
Instance Method Summary collapse
-
#run(_command) ⇒ String
Wrap a command and return the augmented command which can be executed.
-
#verify ⇒ Any
Verify that the command wrapper is initialized properly and working.
Instance Method Details
#run(_command) ⇒ String
Wrap a command and return the augmented command which can be executed.
22 23 24 |
# File 'lib/train/extras/command_wrapper.rb', line 22 def run(_command) fail Train::ClientError, "#{self.class} does not implement #run(command)" end |
#verify ⇒ Any
Verify that the command wrapper is initialized properly and working.
14 15 16 |
# File 'lib/train/extras/command_wrapper.rb', line 14 def verify fail Train::ClientError, "#{self.class} does not implement #verify()" end |