harbr 0.1.86 → 0.1.88

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: ca451b994c455c5ffb67b4e84ea0bbdef4e5f09590968284739cb15a17f1d21b
4
- data.tar.gz: 98a440da6ef3fd9861d003980b32a2aaec43dbc657ef96c99d938c8df9aaf2dd
3
+ metadata.gz: 80f5c7cf66fd3c3bb6e88046f54c8f014b8a930ad57029ce8d9052061aa5e84c
4
+ data.tar.gz: c07167d2704624e5ba953252e1b640e659dd5decf0a407383849c9e4077e4823
5
5
  SHA512:
6
- metadata.gz: 891555a5c76194f9331e282ed113c4d911af123d5610544148e65a14f279d726460a4c09e451c1c77b398dc1dc20742be7ae1d4d706f521cffe73c7583b981d1
7
- data.tar.gz: d6d6d1538e973e77ca18a1ce984c9012e6718dc5dde4d2cf4cd452a04db58e54bb8561618c88fb480608ebced0adee7a66796db30bf0d67557bef71979a5f04f
6
+ metadata.gz: 7a28515f48460eca41522dcf97d057fdf32531ada65f9ffa22130f66a8c30de61f9df0548d9d5ad218d1b35e69ae955dd9d963af70cfcc780b8600701dcc4523
7
+ data.tar.gz: b9fbf32b0c0a2563a9f89a8c8be6fdc269ae47f7722657f97d74207ffbac1392512e27b0310189b447d65e9a5401bb2de9fd66d6c76dae032afc587b14105466
data/exe/harbr CHANGED
@@ -133,7 +133,7 @@ class HarbrCLI < Thor
133
133
 
134
134
  container_repo = Harbr::Container::Repository.new
135
135
 
136
- ["live.#{name}", "next.#{name}"].each do |container_name|
136
+ ["live.#{name}", "next.#{name}", name].each do |container_name|
137
137
 
138
138
  container_repo.get_by_name(container_name).each do |container|
139
139
  `port release #{container.port}`
data/lib/harbr/job.rb CHANGED
@@ -137,6 +137,11 @@ module Harbr
137
137
  `ln -sf /var/harbr/containers/#{name}/versions/#{version} /var/harbr/containers/#{name}/live`
138
138
  end
139
139
 
140
+ if env == "next"
141
+ `rm -f /var/harbr/containers/#{name}/next` if Dir.exist?("/var/harbr/containers/#{name}/next")
142
+ `ln -sf /var/harbr/containers/#{name}/versions/#{version} /var/harbr/containers/#{name}/next`
143
+ end
144
+
140
145
  bundle_install_if_needed(version_path)
141
146
 
142
147
  create_runit_scripts(name, port, env)
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.86"
4
+ VERSION = "0.1.88"
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.86
4
+ version: 0.1.88
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delaney Kuldvee Burke