harbr 0.1.81 → 0.1.83
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/harbr/job.rb +3 -2
- data/lib/harbr/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: facdcd11bc99e8446e63f238f26887c463b3e43e1774a3d55e01b84db1deb544
|
4
|
+
data.tar.gz: 57e4363de2ae148056ae3c68b7bb5018e8860630cd54feda08d91d267e17f2e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6916c71a469ab13b6c67ac85fff8f4668252ae8a670727f273bc71d9394dee07d3d3017f56128a27b49a70450504232338911d26fc1474c062124bfaecd14da9
|
7
|
+
data.tar.gz: 43fbf57d32578cfe257a65b5308f79607beb2eb50edf4942219852386c81e44d5c9a422b2952eaa1cc2a7683df78382f191b5dd83d57d66fef64873040469a5d
|
data/lib/harbr/job.rb
CHANGED
@@ -216,7 +216,7 @@ module Harbr
|
|
216
216
|
def initialize(container, port, env)
|
217
217
|
@container_name = container
|
218
218
|
@port = port
|
219
|
-
@env = env
|
219
|
+
@env = env
|
220
220
|
end
|
221
221
|
|
222
222
|
def run_script
|
@@ -238,10 +238,11 @@ module Harbr
|
|
238
238
|
end
|
239
239
|
|
240
240
|
def log_script
|
241
|
+
env = @env == 'current' ? nil : @env
|
241
242
|
<<~SCRIPT
|
242
243
|
#!/bin/sh
|
243
244
|
echo "starting log for #{@container_name} on port #{@port}"
|
244
|
-
exec svlogd -tt /var/log/harbr/#{@container_name}/#{
|
245
|
+
exec svlogd -tt /var/log/harbr/#{@container_name}/#{env}
|
245
246
|
SCRIPT
|
246
247
|
end
|
247
248
|
end
|
data/lib/harbr/version.rb
CHANGED