Sha256: 82c35ceb4aedcd490e398eb8a3cc70a7c60b69d36085dc22aebcee92c07962e9

Contents?: true

Size: 321 Bytes

Versions: 15

Compression:

Stored size: 321 Bytes

Contents

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

driver :driver10 do

  # 特定のサーバからのイベントが発生した場合のみ処理を実行する
  on :event10.at("localhost") do
    puts "handler10 for localhost"
  end

  on :event10.at("test_server1") do
    puts "handler10 for test_server1"
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

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