harbr 0.1.84 → 0.1.85
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/harbr +2 -2
- data/lib/harbr/job.rb +5 -0
- 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: be82c631f5f11bd9bd9b0e2f418a649a3c9be0c9917cc4659fbcaac615b4b44e
|
4
|
+
data.tar.gz: 8714e7e129b71d4db389959256b85f4d1d5786f07b65e9b83ad5396443eea2e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f6e4de31bf787de45ba4239916ff00552f3bfebcae2e5111e438e5ebb458ccc01865b189d73722383d6ec695042ad2b5d723fdcfeb952c7ee1079de4f3cc7f8
|
7
|
+
data.tar.gz: fd75ef1823dcac1a36f1f4db2ceabd60a181253aa197b4a44766a3496d67aeb0fd8c3803e4b9017f4eec3ff095443a88fe65a9de6d070d492afa85cc55f3c184
|
data/exe/harbr
CHANGED
@@ -218,11 +218,11 @@ class HarbrCLI < Thor
|
|
218
218
|
version = $1
|
219
219
|
raise "Ooops! next version not found!" if version.nil?
|
220
220
|
|
221
|
+
Harbr::Job.perform_async(name, version, "live")
|
222
|
+
|
221
223
|
/versions\/(?<version>\d*)/ =~ `ls -l /var/harbr/containers/#{name}/live`
|
222
224
|
`ln -sf /var/harbr/containers/#{name}/version/#{$1} /var/harbr/containers/#{name}/rollback`
|
223
225
|
|
224
|
-
Harbr::Job.perform_async(name, version, "live")
|
225
|
-
|
226
226
|
puts "deploy version #{version} of #{name} to live environment"
|
227
227
|
end
|
228
228
|
|
data/lib/harbr/job.rb
CHANGED
@@ -132,6 +132,11 @@ module Harbr
|
|
132
132
|
def process_container(name, version, port, env, manifest)
|
133
133
|
version_path = "/var/harbr/containers/#{name}/versions/#{version}"
|
134
134
|
|
135
|
+
if env == "live"
|
136
|
+
`rm -f /var/harbr/containers/#{name}/live` if Dir.exist?("/var/harbr/containers/#{name}/live")
|
137
|
+
`ln -sf /var/harbr/containers/#{name}/versions/#{version} /var/harbr/containers/#{name}/live`
|
138
|
+
end
|
139
|
+
|
135
140
|
bundle_install_if_needed(version_path)
|
136
141
|
|
137
142
|
create_runit_scripts(name, port, env)
|
data/lib/harbr/version.rb
CHANGED