chef-metal 0.14 → 0.14.1
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/CHANGELOG.md +4 -1
- data/bin/metal +3 -4
- data/lib/chef_metal/action_handler.rb +4 -1
- data/lib/chef_metal/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 368e0e132c85d20a3faa50413fc99a465e9d1503
|
4
|
+
data.tar.gz: ea62225030d4b8282a64c5c7a717f9ee426c71e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e700f73768424ba14c0bb8fb8231268e03f3d0fcd08ba68679b439a2fde8fd00243be60309035c0bb124b8826b2bfeae32c4e6514f7ae22308410ca1c7993fc5
|
7
|
+
data.tar.gz: ebc04780f345f02bfad9bd5c817fda7fa9997b4771b18037167d654d7c8354fa775097005040acb843ea63e56c8a8a59730e64a3456c95ef71b7f97b3b976c7a
|
data/CHANGELOG.md
CHANGED
data/bin/metal
CHANGED
@@ -114,7 +114,7 @@ class ChefMetal::Application < Chef::Application
|
|
114
114
|
case command
|
115
115
|
when 'execute'
|
116
116
|
connect_to_machines(cli_arguments.shift) do |machine|
|
117
|
-
machine.execute(action_handler, cli_arguments.join(' '), :read_only => config[:read_only], :stream => config[:stream], :timeout => config[:timeout].to_f)
|
117
|
+
result = machine.execute(action_handler, cli_arguments.join(' '), :read_only => config[:read_only], :stream => config[:stream], :timeout => config[:timeout].to_f)
|
118
118
|
puts result.stdout if result.stdout != '' && !config[:stream] && Chef::Config.log_level != :debug
|
119
119
|
STDERR.puts result.stderr if result.stderr != '' && !config[:stream] && Chef::Config.log_level != :debug
|
120
120
|
exit_code = result.exitstatus if result.exitstatus != 0
|
@@ -246,9 +246,8 @@ class ChefMetal::Application < Chef::Application
|
|
246
246
|
end
|
247
247
|
|
248
248
|
def connect_to_machines(spec)
|
249
|
-
|
250
|
-
|
251
|
-
machine_specs.map { |machine_spec| ChefMetal.connect_to_machine(machine_spec) }
|
249
|
+
machine_specs(spec).each do |machine_spec|
|
250
|
+
yield ChefMetal.connect_to_machine(machine_spec)
|
252
251
|
end
|
253
252
|
end
|
254
253
|
|
@@ -42,9 +42,12 @@ module ChefMetal
|
|
42
42
|
# action that needs to be done.
|
43
43
|
def perform_action(description)
|
44
44
|
if should_perform_actions
|
45
|
-
yield
|
45
|
+
result = yield
|
46
|
+
else
|
47
|
+
result = nil
|
46
48
|
end
|
47
49
|
performed_action(description)
|
50
|
+
result
|
48
51
|
end
|
49
52
|
|
50
53
|
# Open a stream which can be printed to and closed
|
data/lib/chef_metal/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-metal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Keiser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef
|