Sha256: e500aa1b95e497fa403cf07c241bf535280dc4f138ebc0aec350e097f83f4c90

Contents?: true

Size: 458 Bytes

Versions: 15

Compression:

Stored size: 458 Bytes

Contents

# -*- coding: utf-8 -*-
require 'tengine/core'

# submitメソッドは、ハンドラ内でのみ使用できるので、ハンドラ外で使用した場合例外がraiseされる。
# loadでもbindでも途中で失敗し、Tengineコアのプロセスは終了する
ack_policy(:at_first, :event53)

driver :driver53 do
  submit # SyntaxErrorなどではなく、Tengine::Core::DslErrorがraiseされる

  on:event53 do
    puts "handler53"
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
tengine_core-1.2.2 failure_examples/uc53_submit_outside_of_handler.rb
tengine_core-1.2.1 failure_examples/uc53_submit_outside_of_handler.rb
tengine_core-1.2.0 failure_examples/uc53_submit_outside_of_handler.rb
tengine_core-1.1.0 failure_examples/uc53_submit_outside_of_handler.rb
tengine_core-0.5.39 failure_examples/uc53_submit_outside_of_handler.rb
tengine_core-0.5.38 failure_examples/uc53_submit_outside_of_handler.rb
tengine_core-0.5.37 failure_examples/uc53_submit_outside_of_handler.rb
tengine_core-0.5.36 failure_examples/uc53_submit_outside_of_handler.rb
tengine_core-0.5.35 failure_examples/uc53_submit_outside_of_handler.rb
tengine_core-0.5.34 failure_examples/uc53_submit_outside_of_handler.rb
tengine_core-0.5.33 failure_examples/uc53_submit_outside_of_handler.rb
tengine_core-0.5.32 failure_examples/uc53_submit_outside_of_handler.rb
tengine_core-0.5.31 failure_examples/uc53_submit_outside_of_handler.rb
tengine_core-0.5.30 failure_examples/uc53_submit_outside_of_handler.rb
tengine_core-0.5.28 failure_examples/uc53_submit_outside_of_handler.rb