module ActiveEvent::Domain
Attributes
server[RW]
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
# File lib/active_event/domain.rb, line 22 def initialize(*args) super # DRb.start_service # should not be necessary self.server = DRbObject.new_with_uri self.class.server_uri end
Public Instance Methods
run_command(command)
click to toggle source
# File lib/active_event/domain.rb, line 28 def run_command(command) command.valid? && server.run_command(command) rescue DomainExceptionCapture => e message, backtrace = JSON.parse(e.message) raise DomainException, message, backtrace end