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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1b0d736611f71d1f376882c03ea536faf2405ffca07be97f0c893e7f39dbd40
4
- data.tar.gz: fecba1d996d65db0e6e1e9a93a8360c84eaea30071a2386036a47faddbcd5100
3
+ metadata.gz: eb155f1e7d236670709184451785ca839997834b0686062645549e0987298b0d
4
+ data.tar.gz: cb6e92c7f4c13f2d58f2d953dea91bd3cf93f1ee27f14dd37c2bfff99b8d60ce
5
5
  SHA512:
6
- metadata.gz: b1c0756b84b18ce019d4628d77e2c50c3c289082f9bb374bf2dc82c78b7fc383562a4f0341d4abbec07d942a795ce3e11a93fae34835103e375b4a007371d91e
7
- data.tar.gz: 33b768b79aa12303da9ba3aa94ddfad7cfcfebac8a03bd6f50303221e2a82e45f2863599457a04047e28cb4131684ef9e93ed14ff279fbaf7bca718e8d553305
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"
@@ -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
- current_path = "/var/harbr/containers/#{name}/versions/#{version}"
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Harbr
4
- VERSION = "0.0.101"
4
+ VERSION = "0.0.104"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: harbr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.101
4
+ version: 0.0.104
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delaney Kuldvee Burke