harbr 0.1.61 → 0.1.62

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: c1981cd906aad0aa7276bcf5a4000bca22a4c64c60d5c65fb6035938fc4752af
4
- data.tar.gz: d1085ae8703b5f65ebed446d75072886df693d6dfa44c64a1dc7170e8794f059
3
+ metadata.gz: 1b8c14de80eaf1bb31a4cc7fbd90444d49cdbbd324ccdbaff560b46a0cc6b081
4
+ data.tar.gz: a9834605ae59ca99428a193c3432d85d94e72f1762eb3a2bdbd7295126b769be
5
5
  SHA512:
6
- metadata.gz: 16cc4ec3fb5e405eaf03c472336913f5be3ae8071aaf95c3379a2bd124219164f8b66588729117c24c2d94508ee4c9f8085b19774c1ab8793956d4fe1b4a7523
7
- data.tar.gz: acd9c634875e20c3b0a8bacc14e4f91ebfc68f6ae799306e481eed2799bdf77d5f228714df79d61f46246b33161b534db62a41b1614f725be055701b1b2e38a1
6
+ metadata.gz: f8bf85e398d659feb4967e62542c7756cbf38f7d76ac870165e3bcd9cf025c7ac4e1ecdcdbee8750a663b33d37b9f291ac1ab041b96396b07013149c5350b15f
7
+ data.tar.gz: 5c350932f47d39bef85a603e31a30486e5dac807a3a5a099b059bb9a03114c4f73967bd793ddfd229adf3bf934a67b8e28b652c0c3aa96f2094eb302b411a1fb
data/exe/harbr CHANGED
@@ -190,14 +190,10 @@ class HarbrCLI < Thor
190
190
  /versions\/(?<version>\d*)/.match(`ls -l /var/harbr/containers/#{name}/next`)
191
191
  version = $1
192
192
  raise "Ooops! next version not found!" if version.nil?
193
-
194
-
193
+
195
194
  /versions\/(?<version>\d*)/.match(`ls -l /var/harbr/containers/#{name}/current`)
196
195
  `ln -sf /var/harbr/containers/#{name}/version/#{$1} /var/harbr/containers/#{name}/rollback`
197
196
 
198
-
199
- `rm -rf /var/harbr/containers/#{name}/current`
200
-
201
197
  Harbr::Job.perform_async(name, version, "current")
202
198
 
203
199
  puts "deploy current version #{version} of #{name}"
data/lib/harbr/job.rb CHANGED
@@ -197,7 +197,7 @@ module Harbr
197
197
  if env == "current"
198
198
 
199
199
  `rm -f /etc/service/#{name}`
200
- `rm -f /var/harbr/containers/#{name}`
200
+ `rm -f /var/harbr/containers/#{name}/current`
201
201
 
202
202
  `ln -sf /var/harbr/containers/#{name}/versions/#{version} /var/harbr/containers/#{name}/current`
203
203
  `ln -sf /etc/sv/harbr/#{name} /etc/service/#{name}`
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.1.61"
4
+ VERSION = "0.1.62"
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.1.61
4
+ version: 0.1.62
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delaney Kuldvee Burke