Class: Azkaban::PigJob

Inherits:
JobFile show all
Defined in:
lib/azkaban-rb/tasks.rb

Instance Attribute Summary

Attributes inherited from JobFile

#read_locks, #task, #write_locks

Instance Method Summary collapse

Methods inherited from JobFile

#reads, #set, #write, #writes

Constructor Details

#initialize(task, ext) ⇒ PigJob

Returns a new instance of PigJob.



143
144
145
146
# File 'lib/azkaban-rb/tasks.rb', line 143

def initialize(task, ext)
  super(task,ext)
  set "type"=>"pig"
end

Instance Method Details

#uses(name) ⇒ Object



148
149
150
# File 'lib/azkaban-rb/tasks.rb', line 148

def uses(name)
  set "pig.script"=>name
end