Skip to content

Instantly share code, notes, and snippets.

@adamruzicka
Created November 14, 2018 13:00
Show Gist options
  • Save adamruzicka/51f1a65deb7e46c8d25d13c8fa926f22 to your computer and use it in GitHub Desktop.
Save adamruzicka/51f1a65deb7e46c8d25d13c8fa926f22 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require_relative 'example_helper'
class Stuck < Dynflow::Action
def plan
puts "Getting stuck"
Kernel.exit!
end
end
if $0 == __FILE__
ExampleHelper.world.action_logger.level = 1
ExampleHelper.world.logger.level = 0
ExampleHelper.world.trigger(Stuck) if ARGV[0] == 'stuck'
ExampleHelper.run_web_console
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment