class Train::Extras::CommandWrapperBase
Define the interface of all command wrappers.
Public Instance Methods
run(_command)
click to toggle source
Wrap a command and return the augmented command which can be executed.
@param [Strin] command that will be wrapper @return [String] result of wrapping the command
# File lib/train/extras/command_wrapper.rb, line 23 def run(_command) fail Train::ClientError, "#{self.class} does not implement #run(command)" end
verify()
click to toggle source
Verify that the command wrapper is initialized properly and working.
@return [Any] verification result, nil if all went well, otherwise a message
# File lib/train/extras/command_wrapper.rb, line 15 def verify fail Train::ClientError, "#{self.class} does not implement #verify()" end