harbr 0.1.61 → 0.1.62
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/harbr +1 -5
- data/lib/harbr/job.rb +1 -1
- 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: 1b8c14de80eaf1bb31a4cc7fbd90444d49cdbbd324ccdbaff560b46a0cc6b081
|
4
|
+
data.tar.gz: a9834605ae59ca99428a193c3432d85d94e72f1762eb3a2bdbd7295126b769be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8bf85e398d659feb4967e62542c7756cbf38f7d76ac870165e3bcd9cf025c7ac4e1ecdcdbee8750a663b33d37b9f291ac1ab041b96396b07013149c5350b15f
|
7
|
+
data.tar.gz: 5c350932f47d39bef85a603e31a30486e5dac807a3a5a099b059bb9a03114c4f73967bd793ddfd229adf3bf934a67b8e28b652c0c3aa96f2094eb302b411a1fb
|
data/exe/harbr
CHANGED
@@ -190,14 +190,10 @@ class HarbrCLI < Thor
|
|
190
190
|
/versions\/(?<version>\d*)/.match(`ls -l /var/harbr/containers/#{name}/next`)
|
191
191
|
version = $1
|
192
192
|
raise "Ooops! next version not found!" if version.nil?
|
193
|
-
|
194
|
-
|
193
|
+
|
195
194
|
/versions\/(?<version>\d*)/.match(`ls -l /var/harbr/containers/#{name}/current`)
|
196
195
|
`ln -sf /var/harbr/containers/#{name}/version/#{$1} /var/harbr/containers/#{name}/rollback`
|
197
196
|
|
198
|
-
|
199
|
-
`rm -rf /var/harbr/containers/#{name}/current`
|
200
|
-
|
201
197
|
Harbr::Job.perform_async(name, version, "current")
|
202
198
|
|
203
199
|
puts "deploy current version #{version} of #{name}"
|
data/lib/harbr/job.rb
CHANGED
@@ -197,7 +197,7 @@ module Harbr
|
|
197
197
|
if env == "current"
|
198
198
|
|
199
199
|
`rm -f /etc/service/#{name}`
|
200
|
-
`rm -f /var/harbr/containers/#{name}`
|
200
|
+
`rm -f /var/harbr/containers/#{name}/current`
|
201
201
|
|
202
202
|
`ln -sf /var/harbr/containers/#{name}/versions/#{version} /var/harbr/containers/#{name}/current`
|
203
203
|
`ln -sf /etc/sv/harbr/#{name} /etc/service/#{name}`
|
data/lib/harbr/version.rb
CHANGED