procodile 1.0.19 → 1.0.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/procodile/config.rb +11 -2
- data/lib/procodile/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08e686a096345f3522112998618bf86e470624e5'
|
4
|
+
data.tar.gz: 15432576aae3bb463a987fe91f31a8ad68309583
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ab3208e3e3f6a16f9a00d555981caaa4dac0d16fbe2973e2f03d1d2dfc35ef68da1c3141f8b218fc173a846bf61107c447e2923278dfc0d31260a257c177a60
|
7
|
+
data.tar.gz: bdb05ad0b32b565c829ffb1117b115873b2213ac7b9e5e755e5187f47637c774b712421460031685452bc458bd863f45632f2ca0938f648f7454df8e744a0bc9
|
data/lib/procodile/config.rb
CHANGED
@@ -14,6 +14,15 @@ module Procodile
|
|
14
14
|
unless File.file?(procfile_path)
|
15
15
|
raise Error, "Procfile not found at #{procfile_path}"
|
16
16
|
end
|
17
|
+
|
18
|
+
# We need to check to see if the local or options
|
19
|
+
# configuration will override the root that we've been given.
|
20
|
+
# If they do, we can throw away any reference to the one that the
|
21
|
+
# configuration was initialized with and start using that immediately.
|
22
|
+
if new_root = (local_options['root'] || options['root'])
|
23
|
+
@root = new_root
|
24
|
+
end
|
25
|
+
|
17
26
|
FileUtils.mkdir_p(pid_root)
|
18
27
|
|
19
28
|
@processes = process_list.each_with_index.each_with_object({}) do |((name, command), index), hash|
|
@@ -56,7 +65,7 @@ module Procodile
|
|
56
65
|
end
|
57
66
|
|
58
67
|
def root
|
59
|
-
|
68
|
+
@root
|
60
69
|
end
|
61
70
|
|
62
71
|
def user
|
@@ -135,7 +144,7 @@ module Procodile
|
|
135
144
|
end
|
136
145
|
|
137
146
|
def procfile_path
|
138
|
-
@procfile_path || File.join(
|
147
|
+
@procfile_path || File.join(self.root, 'Procfile')
|
139
148
|
end
|
140
149
|
|
141
150
|
def options_path
|
data/lib/procodile/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: procodile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Cooke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|