promenade 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/promenade/setup.rb +2 -2
- data/lib/promenade/version.rb +1 -1
- 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: 6038eb3692025b959c4fac797615ad3f213cef7bf44aa2acc0c0fc8abf7abc9d
|
4
|
+
data.tar.gz: 68c502e34e147f24ed378ff236ae85f6abadd74eb24400393f980643e2aff25f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40cf77b605a494115bd4b43002ddeba06db5b6f37d8ea7dfd110230f1642d25af77f6e7673453d645711558d20693539c44a44c947156d6edda2315ada91fe6d
|
7
|
+
data.tar.gz: 924beb3ee617a96e5b3e356e689817e119852e6bcfd798a38bf27109b4a278d7df77cd9ad732b5cee24bc0808546fc2f400752376378e841cfcb09ac553be8ce
|
data/Gemfile.lock
CHANGED
data/lib/promenade/setup.rb
CHANGED
@@ -3,11 +3,11 @@ require "prometheus/client/support/unicorn"
|
|
3
3
|
|
4
4
|
module Promenade
|
5
5
|
def self.root_dir
|
6
|
-
defined?(Rails)
|
6
|
+
defined?(Rails) && Rails.root || Pathname.new(ENV.fetch("RAILS_ROOT", Dir.pwd))
|
7
7
|
end
|
8
8
|
|
9
9
|
def self.multiprocess_files_dir
|
10
|
-
ENV.fetch("PROMETHEUS_MULTIPROC_DIR",
|
10
|
+
ENV.fetch("PROMETHEUS_MULTIPROC_DIR", root_dir.join("tmp", "prometheus"))
|
11
11
|
end
|
12
12
|
|
13
13
|
def self.setup
|
data/lib/promenade/version.rb
CHANGED