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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2637184d71c562a5e215f822f78267b8dfbcd2a
4
- data.tar.gz: 48f5cebfb2b211e41e58b820d5c4fe0f54cb89d7
3
+ metadata.gz: d1db2c481b0114537f8719c3f9247c6a366bb16a
4
+ data.tar.gz: ce2001f954d2b2d3c4acb10cb959e3ca18418162
5
5
  SHA512:
6
- metadata.gz: e1489fc65b5a189ffd76905367927075b9c35f04bfd8f9a70cfcf3a4a72968daf877435164b64074acfdef4eca755646e1ae32c6379f3fd931143076733b4c21
7
- data.tar.gz: f5ffc1f76831fb7874bca2227516ce15bd802a3e89f91abfbaa81637a79fa1bf4d54e93d5ac3e21c709e9e68ee61174e308fe44ff355b914b07baf530c57134c
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.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arkaan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Courtois