Project

General

Profile

« Previous | Next » 

Revision 5da1960c

Added by Marc Dequènes almost 14 years ago

  • ID 5da1960cb46be0feaa153f365256dbf0dd7967ef

[evol] Task DSL: rework to use the same Task objet for the same task (in order to have a proper count of tasks and be able to transport information easily through steps)

View differences:

bin/test_client
include BotNet
def start_work
# to test the closure through the inner instance_eval calls
toto = true
task "compare stuff" do
ask "MapMaker", :info1, "/_cyborg_"
ask "Librarian", :info2, "/_cyborg_"
......
puts "PLOUF"
pp errors
pp results
stop_bot :at_once
end
on_success do
puts "OK"
......
on_success do
puts "OK compare stuff"
end
end
on_error do
stop_bot :at_once
on_error do
stop_bot :at_once
end
end
end

Also available in: Unified diff