Module: ActiveEvent::Domain
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/active_event/domain.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#initialize(*args) ⇒ Object
22 23 24 25 26 |
# 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 |
#run_command(command) ⇒ Object
28 29 30 31 32 33 |
# File 'lib/active_event/domain.rb', line 28 def run_command(command) command.valid? && server.run_command(command) rescue DomainExceptionCapture => e , backtrace = JSON.parse(e.) raise DomainException, , backtrace end |