«
script_loaded and script_unloaded are supported
@counter = 0
def run_me
logger.info("run_me counter: #{@counter}")
end
script_loaded { run_me }
@counter = 1
@counter = 0
def run_me
logger.info("<name> counter: #{@counter}")
end
script_unloaded { run_me }
rule 'unload_test' do
on_start
delay 5.seconds
run { @counter = 2 }
end
name | |
---|---|
test1 | |
test2 | |
test3 |