harbr 0.0.105 → 0.0.107
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/harbr +3 -3
- data/lib/harbr/next/job.rb +0 -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: f8e70f482635d3b1b64c52bb51739e14312704008cb68942552e2c67adcddb0e
|
4
|
+
data.tar.gz: c558200bca48af358ce3a87847c5a156b626ab34a03605ee4d49ffeeaeba5d5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43b3bc4c2e5af49eca364bca97f5a13afb88047aa022e023d8679aba4532eebffb4070a07d9fae4741f0bc38eeeb7c56fb372fd446cc21729e8e74a3394a974b
|
7
|
+
data.tar.gz: a56babd7d75c1c9a2c1840747d064cc3c0efe5a38862fd584d6270d675d4d80ed547ecfd3cf00a00a62f3c476ef2d0c583320347db5583883efd01207fbf88c2
|
data/exe/harbr
CHANGED
@@ -172,7 +172,7 @@ class HarbrCLI < Thor
|
|
172
172
|
desc "deploy", "deploy a container to production"
|
173
173
|
def deploy(name)
|
174
174
|
Dir.chdir("/var/harbr/containers/#{name}/") do
|
175
|
-
`
|
175
|
+
`mv current rollback`
|
176
176
|
`mv next current`
|
177
177
|
puts `sv restart #{name}`
|
178
178
|
end
|
@@ -183,9 +183,9 @@ class HarbrCLI < Thor
|
|
183
183
|
def rollback(name)
|
184
184
|
Dir.chdir("/var/harbr/containers/#{name}") do
|
185
185
|
if File.exist?("rollback")
|
186
|
+
`sv stop #{name}`
|
186
187
|
`mv rollback current`
|
187
|
-
`sv
|
188
|
-
`sv restart next.#{name}`
|
188
|
+
`sv start #{name}`
|
189
189
|
puts "rollback successful"
|
190
190
|
end
|
191
191
|
end
|
data/lib/harbr/next/job.rb
CHANGED
@@ -190,7 +190,6 @@ module Harbr
|
|
190
190
|
|
191
191
|
|
192
192
|
system "rm /etc/service/next.#{name}"
|
193
|
-
system "rm /var/harbr/containers/#{name}/next"
|
194
193
|
|
195
194
|
system "ln -sf /var/harbr/containers/#{name}/versions/#{version} /var/harbr/containers/#{name}/next"
|
196
195
|
system "ln -sf /etc/sv/harbr/#{name}/next /etc/service/next.#{name}"
|
data/lib/harbr/version.rb
CHANGED