harbr 0.0.100 → 0.0.103

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: d22a7bf822b74fda8aa42c30c036a00af954c466fb5f9e1f393abe63a052c23e
4
- data.tar.gz: 147008e9205383db62e42e41a9131048b8826301a5af2047298ecd209bda1e19
3
+ metadata.gz: 6abc41657c5bd1734276f76e577bc912835c8797d5b227ffd51ba14413483e4d
4
+ data.tar.gz: 45cef2dafb7a7e3ad4be7eea4e87633a297ed92cae99c1ba6c1d1a8fff889547
5
5
  SHA512:
6
- metadata.gz: 3a2c3727cbd6917d3db751835336b54ccf4e9ecddac22e7a84a069e9e485f165ac845d6e3de7fe51f69a2183041c33d403df43c271e1b46baf6893946bb7fe22
7
- data.tar.gz: 499584156142292512df073f475b26c954b5dbc6c69c9c49434e109ec6e1d6a5c35960abedaeeb7a28ec8ee98bb1c6b59b9fa2273c0b8e559ddab5afba01f932
6
+ metadata.gz: d14e9a1ceedda7735c1ba80b8d565a5203dbfeb9ef4d4670df323cc4e58fd92aef02b2d0713c18998b73181582dcb14a6e26200365a08a1e84df5a2ab82db58e
7
+ data.tar.gz: 340f8e3cc93bedd983845673b459cbbfe1f6223affb2819e32e713847170c912f10c48963153f182837d3215aa9d84ce3ab9181072b27ae3f5124934b7226689
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"
@@ -57,7 +57,7 @@ module Harbr
57
57
 
58
58
  container.port = port
59
59
  container.next_version = version
60
- contaimer.previous_version = container.current_version
60
+ container.previous_version = container.current_version
61
61
  containers.update(container)
62
62
 
63
63
  containers.all
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.100"
4
+ VERSION = "0.0.103"
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.100
4
+ version: 0.0.103
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delaney Kuldvee Burke