Sha256: ff9478f3ba09e7a6d3e418fd90a997061bd25f8013a5dc65767b45f23afc5073
Contents?: true
Size: 859 Bytes
Versions: 2
Compression:
Stored size: 859 Bytes
Contents
# Is loaded on setup / when handlers need to be # registered. Use it to register handlers / do # any repeatable setup that will happen before # any connections are created Marvin::Loader.before_run do # E.G. # MyHandler.register! (Marvin::Base subclass) or # Marvin::Settings.default_client.register_handler my_handler (a handler instance) # Register in ruby # # LoggingHandler.register! if Marvin::Settings.use_logging # Conditional registration - load the distributed dispatcher # if an actual client, otherwise use the normal handlers. # # if Marvin::Loader.distributed_client? # HelloWorld.register! # DebugHandler.register! # else # Marvin::Distributed::DispatchHandler.register! # end # And any other code here that will be run before the client HelloWorld.register! DebugHandler.register! end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
Sutto-marvin-0.2.0 | config/setup.rb |
Sutto-marvin-0.2.1 | config/setup.rb |