jmettraux / ruote

a ruby workflow engine (dead)
MIT License
496 stars 74 forks source link

Dashboard#launch(x, fields, vars) normalize fields and vars #67

Closed jmettraux closed 12 years ago

jmettraux commented 12 years ago
require 'ruote'

ruote = Ruote::Dashboard.new(Ruote::Worker.new(Ruote::HashStorage.new))
ruote.noisy = ENV['NOISY'] == 'true'

pdef = Ruote.define do
  #set 'v:blah' => 3
  iterator :times => '${v:blah}' do
    echo "${v:i} / ${v:ii} / ${v:blah}"
  end
end

wfid = ruote.launch(pdef, {}, { :blah => 3 })
ruote.wait_for(wfid)

:blah is not taken as a variable