Module: Apphunkd
- Defined in:
- lib/apphunkd.rb,
lib/apphunkd/api.rb,
lib/apphunkd/queue.rb,
lib/apphunkd/remote.rb,
lib/apphunkd/api/service.rb,
lib/apphunkd/remote/result.rb
Defined Under Namespace
Modules: API, Remote
Classes: Queue
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.queue ⇒ Object
Returns the value of attribute queue.
9
10
11
|
# File 'lib/apphunkd.rb', line 9
def queue
@queue
end
|
Class Method Details
.initialize_api_service ⇒ Object
21
22
23
|
# File 'lib/apphunkd.rb', line 21
def initialize_api_service
API::Service.run! :port => '8212', :host => '127.0.0.1'
end
|
.initialize_queue ⇒ Object
16
17
18
19
|
# File 'lib/apphunkd.rb', line 16
def initialize_queue
self.queue = Queue.new
self.queue.activate!
end
|
.run! ⇒ Object
11
12
13
14
|
# File 'lib/apphunkd.rb', line 11
def run!
initialize_queue
initialize_api_service
end
|