Class: Azkaban::CommandJob
Instance Attribute Summary
Attributes inherited from JobFile
#read_locks, #task, #uses_arg, #write_locks
Instance Method Summary collapse
-
#initialize(task, ext) ⇒ CommandJob
constructor
A new instance of CommandJob.
- #uses(text) ⇒ Object
Methods inherited from JobFile
#[], #[]=, #reads, #set, #write, #writes
Constructor Details
#initialize(task, ext) ⇒ CommandJob
Returns a new instance of CommandJob.
196 197 198 199 |
# File 'lib/azkaban-rb/tasks.rb', line 196 def initialize(task, ext) super(task,ext) set "type"=>"command" end |
Instance Method Details
#uses(text) ⇒ Object
201 202 203 204 |
# File 'lib/azkaban-rb/tasks.rb', line 201 def uses(text) @uses_arg = text set "command"=>text end |