arkaan 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arkaan/utils/micro_service.rb +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1db2c481b0114537f8719c3f9247c6a366bb16a
|
4
|
+
data.tar.gz: ce2001f954d2b2d3c4acb10cb959e3ca18418162
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e50f12d5fb03b0024ef6049bbbd9a7fbaef77514d5416ce1b7756356fbd355be619408071e29bf3e7ca46715ebcb4f8b9f049cd26474cd0b486a637ae6104bb0
|
7
|
+
data.tar.gz: 50b9ae28c6f3d6c1a4ee1b580a1bcc8eafbddfbf62df59f300cc1702873b3a1e4e8f8f6be751e76b6e79f0b9ffb6c8d1e48a8512fc8065e79554037c51372075
|
@@ -62,6 +62,16 @@ module Arkaan
|
|
62
62
|
return load_application(test_mode: true)
|
63
63
|
end
|
64
64
|
|
65
|
+
# Loads the application as a websockets service. Only the websockets application should use that.
|
66
|
+
# @return [Arkaan::utils::MicroService] the instance of the micro-service to chain other calls.
|
67
|
+
def in_websocket_mode
|
68
|
+
load_mongoid_configuration
|
69
|
+
load_standard_files
|
70
|
+
|
71
|
+
Arkaan::Monitoring::Websocket.find_or_create_by(url: ENV['WEBSOCKET_URL'])
|
72
|
+
return self
|
73
|
+
end
|
74
|
+
|
65
75
|
private
|
66
76
|
|
67
77
|
# Registers the service in the database if it has not been created already.
|