harbr 0.0.105 → 0.0.107

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: ab5ab67e12fe0aaf946a2725b1029ac088f8b14da8876d0b2579f1cc4789eac9
4
- data.tar.gz: e10e5f10388d011814d68750858b839351a00c01c5d9637e049bb6561a92b384
3
+ metadata.gz: f8e70f482635d3b1b64c52bb51739e14312704008cb68942552e2c67adcddb0e
4
+ data.tar.gz: c558200bca48af358ce3a87847c5a156b626ab34a03605ee4d49ffeeaeba5d5b
5
5
  SHA512:
6
- metadata.gz: 06a0dcfe90c7694d91b92aa4d2cf21d24d2ad84e91759e1a6adaf978f0cebcb6160b73c15dee4111bbacdef41bc02c7a045f06a597973722bab6b6885143d3e3
7
- data.tar.gz: 28298dbb513b8c9d9a4520c085d55fffcfe0f4de68cdeb864e39e645138ee23400e8283f074460256d95e6c89feab7ef6628f7fdb34cfabb2d78f5edbc5e7f76
6
+ metadata.gz: 43b3bc4c2e5af49eca364bca97f5a13afb88047aa022e023d8679aba4532eebffb4070a07d9fae4741f0bc38eeeb7c56fb372fd446cc21729e8e74a3394a974b
7
+ data.tar.gz: a56babd7d75c1c9a2c1840747d064cc3c0efe5a38862fd584d6270d675d4d80ed547ecfd3cf00a00a62f3c476ef2d0c583320347db5583883efd01207fbf88c2
data/exe/harbr CHANGED
@@ -172,7 +172,7 @@ 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 roolback`
175
+ `mv current rollback`
176
176
  `mv next current`
177
177
  puts `sv restart #{name}`
178
178
  end
@@ -183,9 +183,9 @@ class HarbrCLI < Thor
183
183
  def rollback(name)
184
184
  Dir.chdir("/var/harbr/containers/#{name}") do
185
185
  if File.exist?("rollback")
186
+ `sv stop #{name}`
186
187
  `mv rollback current`
187
- `sv restart #{name}`
188
- `sv restart next.#{name}`
188
+ `sv start #{name}`
189
189
  puts "rollback successful"
190
190
  end
191
191
  end
@@ -190,7 +190,6 @@ module Harbr
190
190
 
191
191
 
192
192
  system "rm /etc/service/next.#{name}"
193
- system "rm /var/harbr/containers/#{name}/next"
194
193
 
195
194
  system "ln -sf /var/harbr/containers/#{name}/versions/#{version} /var/harbr/containers/#{name}/next"
196
195
  system "ln -sf /etc/sv/harbr/#{name}/next /etc/service/next.#{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.0.105"
4
+ VERSION = "0.0.107"
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.105
4
+ version: 0.0.107
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delaney Kuldvee Burke