harbr 0.1.45 → 0.1.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f6ee89cee1169d58a2478e288419a730781c53e978e9a55b6aa0de005fd2e53
4
- data.tar.gz: 99b848d4439b320b6373195228283964977d9ed7608d5813e291bf4f2962759f
3
+ metadata.gz: e30ca645f50357661159b9fa98d2399df44ec9ee226319e3e3b282dfaffc9257
4
+ data.tar.gz: 312660acc631c1abef17c966c52acc7fc386f990c86dabdfddaaf304348e0b14
5
5
  SHA512:
6
- metadata.gz: a0762b736f426397fa1911a912638d79a3b0aca9d8898975f6fa3c250442d001dfb2a42471d260d94340a7f6eccfcc409509dec0e6635c738abd19a7f675a570
7
- data.tar.gz: 3b4b7d9687f47467ecdb1e8995f13cd373300ae9b20a6213534b05ae17629f9f3c7c84c3e7536112997d4804ee76603eb0bbe6ca959a626252f7cf5c18ecb42f
6
+ metadata.gz: 8aad4ccb58ed38c42bdf5c9a6f9decd19721cd902f3fa6b24362e8148449c87aabd4a16b9352ef561ceab0b8f70b2ca53e4803908c494dbe5f33ebc47efee090
7
+ data.tar.gz: ed9cda3e02ecd191aac8df3a2fd883ad974ef6f9c8b91d3793507c2a965e44495b27c7d7e3da75ea7c4b9aa5de1d4a4c72043e7ccee4ecee80cddefa5d55e5d4
data/exe/harbr CHANGED
@@ -82,25 +82,14 @@ class HarbrCLI < Thor
82
82
  end
83
83
 
84
84
  def run_jobs(container, version)
85
-
86
85
  puts "Running tasks for container: #{container}, version: #{version}"
87
-
88
- if !Dir.exist?("/var/harbr/containers/#{container}/current") || version.to_i == 0
89
- check do
90
- puts "Waiting for container #{container} manifest to be available..."
91
- Dir.exist?("/var/harbr/containers/#{container}/versions/#{version}/config/manifest.yml")
92
- end
93
-
94
- Harbr::Job.perform_async(container, version,"current")
95
- puts "deploy current version #{version} of #{container}"
86
+ if version.to_i == 0
87
+ Harbr::Job.perform_async(container, version, "current")
88
+ puts "deploy current version #{version} of #{container}"
96
89
  else
97
- sleep 3
98
- Harbr::Job.perform_async(container, version,"next")
99
- puts "deploy next version #{version} of #{container}"
90
+ Harbr::Job.perform_async(container, version, "next")
91
+ puts "deploy next version #{version} of #{container}"
100
92
  end
101
-
102
-
103
-
104
93
  end
105
94
 
106
95
  def create_traefik_config(containers)
data/lib/harbr/job.rb CHANGED
@@ -99,12 +99,12 @@ module Harbr
99
99
 
100
100
  def process_container(name, version, port, env, manifest)
101
101
  env_path = "/var/harbr/containers/#{name}/#{env}"
102
- system "sv stop #{env}.#{name}" if env == 'next'
102
+ system "sv stop #{env}.#{name}" if env == "next"
103
103
 
104
104
  bundle_install_if_needed(env_path)
105
105
  create_runit_scripts(name, port, env)
106
106
  link_directories(name, version, env)
107
- sync_live_data_if_next(name) if env == 'next'
107
+ sync_live_data_if_next(name) if env == "next"
108
108
 
109
109
  containers = collate_containers("#{env}.#{name}", "#{env}.#{manifest.host}", port)
110
110
  create_traefik_config(containers)
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.45"
4
+ VERSION = "0.1.47"
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.45
4
+ version: 0.1.47
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delaney Kuldvee Burke