harbr 0.0.45 → 0.0.46

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/exe/harbr +6 -9
  3. data/lib/harbr/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b66aa842ae078bf4d62e831cb09b65c6ff299a98b8abe7246b91e29307e5eb0
4
- data.tar.gz: 3aca20f0c9b7a02d91e17d7fb5d877512594cb8144e64359d35cef3fa2c510ab
3
+ metadata.gz: e2164649b0b281b8017df5056a3ef74739d412faf069feed4acfaefeb385e5a9
4
+ data.tar.gz: 8c62663cac838d3024e1122d8d46e4e21ed849ced953d277c2c621bec5fb3701
5
5
  SHA512:
6
- metadata.gz: 497e43c6a6a735a2748678aed7f18d3be1c51868ad103484c8a0757e1d4e6f49523d93843f5afdda74e92040d5cef6a4bb71fc05568995f14b377cad7bb14a18
7
- data.tar.gz: 69cba2f431c8ca7a070b72ac370e88bac00a9ef2e5ff77213d0c87648107489f8d449684ada8626b9ba411116629f43eb21f7b56e146d1e0ec6c245f2e38d8c2
6
+ metadata.gz: a43f17c1da021032b3ec5bc6e6207cfcd04b4ec6c6f37ff7a3150b2fb44f31563b91b4408823c02b25cbd6cc1e8f46a1776954d3265402e925f1333add330ca9
7
+ data.tar.gz: 49e6d74aa0177a6a6592172c2e9e1cdd473afa08cd2f685a2c9037e92e6b044b381d251da138d75b1bd982fade15ad6af6c438a435c95befe32dfbaad8c1e65e
data/exe/harbr CHANGED
@@ -4,15 +4,11 @@ require_relative "../lib/harbr"
4
4
  class HarbrCLI < Thor
5
5
 
6
6
  no_commands do
7
- def load_manifest(container, version)
7
+ def load_manifest(container,version)
8
8
  manifest_path = "/var/harbr/#{container}/versions/#{version}/config/manifest.yml"
9
- if File.exist?(manifest_path)
10
- manifest_data = YAML.load_file(manifest_path)
11
- OpenStruct.new(manifest_data)
12
- else
13
- puts "Manifest file not found for container '#{container}', version '#{version}'"
14
- nil
15
- end
9
+ raise "Manifest not found at #{manifest_path}" unless File.exist?(manifest_path)
10
+ manifest_data = YAML.load_file(manifest_path)
11
+ OpenStruct.new(manifest_data)
16
12
  end
17
13
 
18
14
  def display_containers_table(containers)
@@ -78,9 +74,10 @@ class HarbrCLI < Thor
78
74
  end
79
75
 
80
76
  def run_tasks(container, version)
77
+ puts "Running tasks for container: '#{container}', Version: '#{version}'"
81
78
  manifest = load_manifest(container, version)
79
+ puts "Manifest: #{manifest}"
82
80
  Harbr::Job.perform_async(manifest)
83
- puts "Running tasks for container: '#{container}', Version: '#{version}'"
84
81
  end
85
82
  end
86
83
 
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.45"
4
+ VERSION = "0.0.46"
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.45
4
+ version: 0.0.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delaney Kuldvee Burke