![]() | Code |FrontPage |HiveTraits | |
Hive-case1
-> A watch needs to be set in 4 channels named #solaris #linux #windows #hpux.
Each channel contains members who are also members in #hive. They need to start
running a test case when they receive a notification that a download has been completed
for them on each of the platforms.
|cat fetchbits.seq
puts 'configuring #fetchbits' [:channel => '#fetchbits' !do $i:say[runtests:#solaris,#linux,#windows,#hpux] when $cron:downloadwatch[0 0 1] ] |
|cat solaris.seq
puts 'configuring #solaris' [:channel => '#solaris' !do $pat:start[-s alltests] when $watch:runtests[privmsg:^runtests] ] |
|cat runtests.seq
['#solaris','#windows','#linux','#hpux'].each do |machine| puts 'configuring #{machine}' [:channel => machine !do $pat:start[-s alltests] when $watch:runtests[privmsg:^runtests] ] end |
|cat case1.seq
puts 'configuring #fetchbits' [:channel => '#fetchbits' !do $i:say[runtests:#solaris,#linux,#windows,#hpux] when $cron:downloadwatch[0 0 1] ] ['#solaris','#windows','#linux','#hpux'].each do |c| puts 'configuring #{c}' [:channel => c !do $pat:start[-s alltests] when $watch:runtests[privmsg:^runtests] ] end |
!do $me:seq[case1]
|