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.
- checksums.yaml +4 -4
- data/exe/harbr +6 -9
- data/lib/harbr/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2164649b0b281b8017df5056a3ef74739d412faf069feed4acfaefeb385e5a9
|
4
|
+
data.tar.gz: 8c62663cac838d3024e1122d8d46e4e21ed849ced953d277c2c621bec5fb3701
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
7
|
+
def load_manifest(container,version)
|
8
8
|
manifest_path = "/var/harbr/#{container}/versions/#{version}/config/manifest.yml"
|
9
|
-
|
10
|
-
|
11
|
-
|
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