Method: Backup::Pipeline#add

Defined in:
lib/backup/pipeline.rb

#add(command, success_codes) ⇒ Object

Adds a command to be executed in the pipeline. Each command will be run in the order in which it was added, with it’s output being piped to the next command.

success_codes must be an Array of Integer exit codes that will be considered successful for the command.



25
26
27
28
# File 'lib/backup/pipeline.rb', line 25

def add(command, success_codes)
  @commands << command
  @success_codes << success_codes
end