Class: Astrails::Safe::Sink

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

Direct Known Subclasses

Local, S3

Instance Method Summary collapse

Methods inherited from Stream

#compressed?, #config, #filename, #id, #initialize

Constructor Details

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

Instance Method Details

#runObject



5
6
7
8
9
10
11
12
# File 'lib/astrails/safe/sink.rb', line 5

def run
  if active?
    save
    cleanup
  else
    @parent.run
  end
end