Sha256: 43f1d0d0cd42eea0c2dd370f29968ed42e86a39d7d4f4fa0a12cd49608be5c62
Contents?: true
Size: 486 Bytes
Versions: 27
Compression:
Stored size: 486 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require_relative 'example_helper' class Sleeper < Dynflow::Action def run(event = nil) sleep end end def report(msg) puts "===== #{Time.now}: #{msg}" end if $0 == __FILE__ ExampleHelper.world.action_logger.level = 1 ExampleHelper.world.logger.level = 0 ExampleHelper.world.trigger(Sleeper) report "Sleeping" sleep 5 report "Asking to terminate" ExampleHelper.world.terminate.wait report "Terminated" end
Version data entries
27 entries across 27 versions & 1 rubygems