harbr 0.0.103 → 0.0.105

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: 6abc41657c5bd1734276f76e577bc912835c8797d5b227ffd51ba14413483e4d
4
- data.tar.gz: 45cef2dafb7a7e3ad4be7eea4e87633a297ed92cae99c1ba6c1d1a8fff889547
3
+ metadata.gz: ab5ab67e12fe0aaf946a2725b1029ac088f8b14da8876d0b2579f1cc4789eac9
4
+ data.tar.gz: e10e5f10388d011814d68750858b839351a00c01c5d9637e049bb6561a92b384
5
5
  SHA512:
6
- metadata.gz: d14e9a1ceedda7735c1ba80b8d565a5203dbfeb9ef4d4670df323cc4e58fd92aef02b2d0713c18998b73181582dcb14a6e26200365a08a1e84df5a2ab82db58e
7
- data.tar.gz: 340f8e3cc93bedd983845673b459cbbfe1f6223affb2819e32e713847170c912f10c48963153f182837d3215aa9d84ce3ab9181072b27ae3f5124934b7226689
6
+ metadata.gz: 06a0dcfe90c7694d91b92aa4d2cf21d24d2ad84e91759e1a6adaf978f0cebcb6160b73c15dee4111bbacdef41bc02c7a045f06a597973722bab6b6885143d3e3
7
+ data.tar.gz: 28298dbb513b8c9d9a4520c085d55fffcfe0f4de68cdeb864e39e645138ee23400e8283f074460256d95e6c89feab7ef6628f7fdb34cfabb2d78f5edbc5e7f76
data/exe/harbr CHANGED
@@ -172,11 +172,8 @@ 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
- `cp -r current current.bak`
176
- `cp -r next next.bak`
175
+ `cp -r current roolback`
177
176
  `mv next current`
178
- `mv current.bak rollback`
179
- `mv next.bak next`
180
177
  puts `sv restart #{name}`
181
178
  end
182
179
 
@@ -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.103"
4
+ VERSION = "0.0.105"
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.103
4
+ version: 0.0.105
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delaney Kuldvee Burke