harbr 0.1.84 → 0.1.85

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: 0eeb93a8a44b33d81585d43043fc3e87d8af4ca2b86b58b84e395edd9fdcc486
4
- data.tar.gz: 4ab4e30f7811be94fa7d4c8ccd6a2f00b8ac441bfec0a33426c3f00dfde972f4
3
+ metadata.gz: be82c631f5f11bd9bd9b0e2f418a649a3c9be0c9917cc4659fbcaac615b4b44e
4
+ data.tar.gz: 8714e7e129b71d4db389959256b85f4d1d5786f07b65e9b83ad5396443eea2e6
5
5
  SHA512:
6
- metadata.gz: a2079550747b2693fdfbb9df75fb59044b9455cf66b422493d75de5255d3d274696ed345cc0ba5fee99b6865f0642507a17868d6319dbe9826c3977c44733e12
7
- data.tar.gz: f80160a004bb2b406b9e21f4f20171b432181ee434b7bbaef3a3492b2996ec156d7858540e28cdfa942c72fe999344c199ac7b792a859d7050ee4b9d2862f56b
6
+ metadata.gz: 4f6e4de31bf787de45ba4239916ff00552f3bfebcae2e5111e438e5ebb458ccc01865b189d73722383d6ec695042ad2b5d723fdcfeb952c7ee1079de4f3cc7f8
7
+ data.tar.gz: fd75ef1823dcac1a36f1f4db2ceabd60a181253aa197b4a44766a3496d67aeb0fd8c3803e4b9017f4eec3ff095443a88fe65a9de6d070d492afa85cc55f3c184
data/exe/harbr CHANGED
@@ -218,11 +218,11 @@ class HarbrCLI < Thor
218
218
  version = $1
219
219
  raise "Ooops! next version not found!" if version.nil?
220
220
 
221
+ Harbr::Job.perform_async(name, version, "live")
222
+
221
223
  /versions\/(?<version>\d*)/ =~ `ls -l /var/harbr/containers/#{name}/live`
222
224
  `ln -sf /var/harbr/containers/#{name}/version/#{$1} /var/harbr/containers/#{name}/rollback`
223
225
 
224
- Harbr::Job.perform_async(name, version, "live")
225
-
226
226
  puts "deploy version #{version} of #{name} to live environment"
227
227
  end
228
228
 
data/lib/harbr/job.rb CHANGED
@@ -132,6 +132,11 @@ module Harbr
132
132
  def process_container(name, version, port, env, manifest)
133
133
  version_path = "/var/harbr/containers/#{name}/versions/#{version}"
134
134
 
135
+ if env == "live"
136
+ `rm -f /var/harbr/containers/#{name}/live` if Dir.exist?("/var/harbr/containers/#{name}/live")
137
+ `ln -sf /var/harbr/containers/#{name}/versions/#{version} /var/harbr/containers/#{name}/live`
138
+ end
139
+
135
140
  bundle_install_if_needed(version_path)
136
141
 
137
142
  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.84"
4
+ VERSION = "0.1.85"
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.84
4
+ version: 0.1.85
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delaney Kuldvee Burke