Sha256: f7d733b0976d882c3f2cab51ae32ab1a0faffa36970237de583b57f45b967538

Contents?: true

Size: 658 Bytes

Versions: 9

Compression:

Stored size: 658 Bytes

Contents

#!/usr/bin/env ruby

root_path    = File.expand_path(File.join(File.dirname(__FILE__), '..'))
dynflow_path = File.join(root_path, 'lib')
$LOAD_PATH << dynflow_path unless $LOAD_PATH.include? dynflow_path

require 'dynflow'
require 'tmpdir'

socket              = File.join(Dir.tmpdir, 'dynflow_socket')
persistence_adapter = Dynflow::PersistenceAdapters::Sequel.new ARGV[0] || 'sqlite://db.sqlite'
world               = Dynflow::SimpleWorld.new persistence_adapter: persistence_adapter
listener            = Dynflow::Listeners::Socket.new world, socket

load File.join(root_path, 'test', 'code_workflow_example.rb')

Dynflow::Daemon.new(listener, world).run

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
dynflow-0.6.2 examples/run_daemon.rb
dynflow-0.6.1 examples/run_daemon.rb
dynflow-0.6.0 examples/run_daemon.rb
dynflow-0.5.1 examples/run_daemon.rb
dynflow-0.5.0 examples/run_daemon.rb
dynflow-0.4.1 examples/run_daemon.rb
dynflow-0.4.0 examples/run_daemon.rb
dynflow-0.3.0 examples/run_daemon.rb
dynflow-0.2.0 examples/run_daemon.rb