deimos 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/deimos/version.rb +1 -1
- data/lib/deimos.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4725b70f9faf75095eaaa3ebbc00cdfe4ef9bf78b36019d0430b93208bf86f5a
|
4
|
+
data.tar.gz: f93c66da3dd5cac5fff9ccffb23ebbff337731f533e376d2e1cdf5adec581b57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 678ae608f15092f751a0c27c9c83e73237efa82a0e44cd296ad64344285ba2a352b9bb5eb656edcd8d206600194f8514b4548c6c506d5cb46e9268bee0641191
|
7
|
+
data.tar.gz: 2a5d940d0fbee5b17497d7c062d23ca0eb16ad31c39cd21e1c373f0468f18c3ef762e546aa078522d22a27d0409c795c70191bfb62fabc98e83fb32428786293
|
data/lib/deimos/version.rb
CHANGED
data/lib/deimos.rb
CHANGED
@@ -21,8 +21,6 @@ module Deimos
|
|
21
21
|
module_function
|
22
22
|
|
23
23
|
def boot!
|
24
|
-
require 'deimos/endpoints/status'
|
25
|
-
require 'deimos/endpoints/metrics'
|
26
24
|
Thread.new do
|
27
25
|
::Rack::Handler::WEBrick.run(application, {
|
28
26
|
Host: Deimos.config.bind,
|
@@ -59,6 +57,8 @@ module Deimos
|
|
59
57
|
end
|
60
58
|
|
61
59
|
def applications
|
60
|
+
require 'deimos/endpoints/status'
|
61
|
+
require 'deimos/endpoints/metrics'
|
62
62
|
@applications ||= {
|
63
63
|
"/status" => Deimos::Endpoints::Status.new(status: status),
|
64
64
|
"/metrics" => Deimos::Endpoints::Metrics.new
|