Module: RemoteService
- Extended by:
- RemoteService
- Included in:
- RemoteService
- Defined in:
- lib/remote_service.rb,
lib/remote_service/base.rb,
lib/remote_service/call.rb,
lib/remote_service/proxy.rb,
lib/remote_service/queue.rb,
lib/remote_service/errors.rb,
lib/remote_service/service.rb,
lib/remote_service/version.rb,
lib/remote_service/util/lock.rb,
lib/remote_service/connector/nats.rb
Defined Under Namespace
Modules: Connector, Errors, Util
Classes: Base, Call, Proxy, Queue, Service
Constant Summary
collapse
- VERSION =
"0.1.2"
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#logger ⇒ Object
25
26
27
28
29
30
31
|
# File 'lib/remote_service.rb', line 25
def logger
@logger ||= begin
logger = Logger.new(STDOUT)
logger.level = Logger::INFO
logger
end
end
|
Instance Method Details
#connect(brokers, &block) ⇒ Object
16
17
18
19
|
# File 'lib/remote_service.rb', line 16
def connect(brokers, &block)
queue = Queue.instance
queue.connect(brokers, &block)
end
|
#disconnect ⇒ Object
21
22
23
|
# File 'lib/remote_service.rb', line 21
def disconnect
Queue.instance.stop
end
|