Sha256: a0c0b40df911427aff38feca602482c75f8e7bc7bbce600aaa2318e6deba0157

Contents?: true

Size: 427 Bytes

Versions: 15

Compression:

Stored size: 427 Bytes

Contents

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

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

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

end

Version data entries

15 entries across 15 versions & 1 rubygems

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