kdeploy 1.2.14 → 1.2.16
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/lib/kdeploy/cli.rb +7 -2
- data/lib/kdeploy/configuration.rb +1 -1
- data/lib/kdeploy/runner.rb +7 -4
- data/lib/kdeploy/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: ac8405b033f62a2cee9898ad0fcffbbd8f4f88030ca3d862e11c8cd3313883e3
|
|
4
|
+
data.tar.gz: 871df2896e51d432025ba4c944bef28f00fb20cb709d2548b7f24fb7fbcf8a4c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 580257284cdaba84052ee3d9996ec7c3344283e7954b8725254e5042a7d2fc6e3f7c711e7b548e3ca22005707595f2bf9f2644f3655d34b5927acb9a779ba94e
|
|
7
|
+
data.tar.gz: abe0a760b76fca87c3441bff5f0b081fa6dd2c61f06aeaec1cd5b365d4291af271ed731d52b6d8f3afc377dca25365eb7407b8d09faa421ca2f6ce876096902d
|
data/lib/kdeploy/cli.rb
CHANGED
|
@@ -231,8 +231,13 @@ module Kdeploy
|
|
|
231
231
|
parallel_count = options[:parallel] || Configuration.default_parallel
|
|
232
232
|
debug_mode = options[:debug] || false
|
|
233
233
|
base_dir = @task_file_dir
|
|
234
|
-
runner = Runner.new(
|
|
235
|
-
|
|
234
|
+
runner = Runner.new(
|
|
235
|
+
hosts, self.class.kdeploy_tasks,
|
|
236
|
+
parallel: parallel_count,
|
|
237
|
+
output: output,
|
|
238
|
+
debug: debug_mode,
|
|
239
|
+
base_dir: base_dir
|
|
240
|
+
)
|
|
236
241
|
results = runner.run(task)
|
|
237
242
|
# Don't show summary here - it will be shown at the end for all tasks
|
|
238
243
|
print_results(results, task, show_summary: false, debug: debug_mode)
|
|
@@ -25,7 +25,7 @@ module Kdeploy
|
|
|
25
25
|
config_path ||= find_config_file
|
|
26
26
|
return unless config_path && File.exist?(config_path)
|
|
27
27
|
|
|
28
|
-
config = YAML.
|
|
28
|
+
config = YAML.safe_load_file(config_path, permitted_classes: [Symbol])
|
|
29
29
|
apply_config(config)
|
|
30
30
|
rescue StandardError => e
|
|
31
31
|
warn "Warning: Failed to load config from #{config_path}: #{e.message}"
|
data/lib/kdeploy/runner.rb
CHANGED
|
@@ -5,8 +5,8 @@ require 'concurrent'
|
|
|
5
5
|
module Kdeploy
|
|
6
6
|
# Concurrent task runner for executing tasks across multiple hosts
|
|
7
7
|
class Runner
|
|
8
|
-
def initialize(hosts, tasks, parallel: Configuration.default_parallel, output: ConsoleOutput.new,
|
|
9
|
-
base_dir: nil)
|
|
8
|
+
def initialize(hosts, tasks, parallel: Configuration.default_parallel, output: ConsoleOutput.new,
|
|
9
|
+
debug: false, base_dir: nil)
|
|
10
10
|
@hosts = hosts
|
|
11
11
|
@tasks = tasks
|
|
12
12
|
@parallel = parallel
|
|
@@ -61,8 +61,11 @@ module Kdeploy
|
|
|
61
61
|
@results[name] = result
|
|
62
62
|
else
|
|
63
63
|
# Handle unexpected result format - create a default result
|
|
64
|
-
@results[host_name] =
|
|
65
|
-
|
|
64
|
+
@results[host_name] = {
|
|
65
|
+
status: :unknown,
|
|
66
|
+
error: "Unexpected result format: #{future_result.class}",
|
|
67
|
+
output: []
|
|
68
|
+
}
|
|
66
69
|
end
|
|
67
70
|
|
|
68
71
|
# Check if future raised an exception
|
data/lib/kdeploy/version.rb
CHANGED