Class: Tap::Tasks::Null

Inherits:
Tap::Task
  • Object
show all
Defined in:
lib/tap/tasks/null.rb

Overview

:startdoc::task a dev/null task

Null serves the same function as /dev/null, that is inputs directed to Null go nowhere. Null does not accept joins and will not execute the default app joins.

% tap run -- load a --: null

Instance Method Summary collapse

Instance Method Details

#joinsObject



18
19
20
# File 'lib/tap/tasks/null.rb', line 18

def joins
  nil
end

#on_completeObject



22
23
24
# File 'lib/tap/tasks/null.rb', line 22

def on_complete
  raise "cannot be participate in joins: #{self}"
end

#process(*args) ⇒ Object



14
15
16
# File 'lib/tap/tasks/null.rb', line 14

def process(*args)
  nil
end