Class: Astrails::Safe::Pipe

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

Direct Known Subclasses

Gpg, Gzip

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 Astrails::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



8
9
10
11
12
13
14
# File 'lib/astrails/safe/pipe.rb', line 8

def process
  return unless active?

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