Class: WebTranslateIt::Safe::Pipe

Inherits:
Stream
  • Object
show all
Defined in:
lib/web_translate_it/safe/pipe.rb

Direct Known Subclasses

Gpg, Gzip, Pigz

Instance Attribute Summary

Attributes inherited from Stream

#backup, #config

Instance Method Summary collapse

Methods inherited from Stream

#expand, #initialize

Constructor Details

This class inherits a constructor from WebTranslateIt::Safe::Stream

Instance Method Details

#processObject

process adds required commands to the current shell command string :active?, :pipe, :extension and :post_process are defined in inheriting pipe classes



11
12
13
14
15
16
17
# File 'lib/web_translate_it/safe/pipe.rb', line 11

def process
  return unless active?

  @backup.command << pipe
  @backup.extension << extension
  post_process
end