Top Level Namespace

Defined Under Namespace

Modules: Azkaban

Instance Method Summary collapse

Instance Method Details

#job(*args, &b) ⇒ Object



121
122
123
124
125
126
127
128
129
# File 'lib/azkaban-rb/tasks.rb', line 121

def job(*args,&b)
  task(*args) do |t|
    unless b.nil?
      job = Azkaban::JobFile.new(t, ".job")
      job.instance_eval(&b)
      job.write
    end
  end
end

#props(*args, &b) ⇒ Object



111
112
113
114
115
116
117
118
119
# File 'lib/azkaban-rb/tasks.rb', line 111

def props(*args, &b)
  task(*args) do |t|
    unless b.nil?
      job = Azkaban::JobFile.new(t, ".properties")
      job.instance_eval(&b)
      job.write
    end
  end
end