harbr 0.0.101 → 0.0.104
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/harbr +0 -4
- data/lib/harbr/next/job.rb +2 -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: eb155f1e7d236670709184451785ca839997834b0686062645549e0987298b0d
|
4
|
+
data.tar.gz: cb6e92c7f4c13f2d58f2d953dea91bd3cf93f1ee27f14dd37c2bfff99b8d60ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5da020b844594b095e38199b65d3a986d5340a869a812dfd2ed164070f211c3d09fbdaf031815e426fe851dbc22e26541c8b96cd3c39296b080d0b93ec9cd18a
|
7
|
+
data.tar.gz: db6929b88e3e44742cc62c403b56a689829a0899dd6dffdaa50eeac347b0a623d0ae572fe79bf205f823b2b901416e76d4e857b5183b73e5382602f22496ebe5
|
data/exe/harbr
CHANGED
@@ -186,11 +186,7 @@ class HarbrCLI < Thor
|
|
186
186
|
def rollback(name)
|
187
187
|
Dir.chdir("/var/harbr/containers/#{name}") do
|
188
188
|
if File.exist?("rollback")
|
189
|
-
`cp -r current current.bak`
|
190
189
|
`mv rollback current`
|
191
|
-
`cp -r current.bak next`
|
192
|
-
`rm -rf rollback`
|
193
|
-
`rm -rf current.bak`
|
194
190
|
`sv restart #{name}`
|
195
191
|
`sv restart next.#{name}`
|
196
192
|
puts "rollback successful"
|
data/lib/harbr/next/job.rb
CHANGED
@@ -166,7 +166,8 @@ module Harbr
|
|
166
166
|
`bundle config set --local path 'vendor/bundle'`
|
167
167
|
|
168
168
|
manifest = load_manifest(name,version)
|
169
|
-
|
169
|
+
|
170
|
+
current_path = "/var/harbr/containers/#{name}/current"
|
170
171
|
|
171
172
|
port = `port assign next.#{manifest.port}`.strip
|
172
173
|
|
data/lib/harbr/version.rb
CHANGED