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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a913392bf4f33acc38f2c62be960b979affc698
4
- data.tar.gz: 7980f8eed3169aed7d50eda6a5c0836825b324ae
3
+ metadata.gz: 368e0e132c85d20a3faa50413fc99a465e9d1503
4
+ data.tar.gz: ea62225030d4b8282a64c5c7a717f9ee426c71e3
5
5
  SHA512:
6
- metadata.gz: 50d27c172313e6c3d53bcc392f9d09cab8e9e4282ef77d46c65e854718e6f036415dd77570c1fc014c784768dd18b4962a0fd7f29a5045f7590b3e7d4f32d172
7
- data.tar.gz: 147d41779a646160b1b93021ca116991d3d5740edd6284d248100b2d022e9366cec4453fd916bc6f4ed34daeeabe41dcef9ee4795e43a923d41b954d2fd805a6
6
+ metadata.gz: e700f73768424ba14c0bb8fb8231268e03f3d0fcd08ba68679b439a2fde8fd00243be60309035c0bb124b8826b2bfeae32c4e6514f7ae22308410ca1c7993fc5
7
+ data.tar.gz: ebc04780f345f02bfad9bd5c817fda7fa9997b4771b18037167d654d7c8354fa775097005040acb843ea63e56c8a8a59730e64a3456c95ef71b7f97b3b976c7a
@@ -1,7 +1,10 @@
1
1
  # Chef Metal Changelog
2
2
 
3
- ## 0.14 (8/18/2013)
3
+ ## 0.14.1 (8/18/2014)
4
4
 
5
+ - Fix "metal execute mario ls" to work again
6
+
7
+ ## 0.14 (8/18/2014)
5
8
 
6
9
  - FEATURE: Add the machine_image resource (@jkeiser, @johnewart):
7
10
  ```ruby
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
- grouped = machine_specs(spec).group_by { |machine_spec| machine_spec.driver_url }
250
- grouped.collect_concat do |driver_url, machine_specs|
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
@@ -1,3 +1,3 @@
1
1
  module ChefMetal
2
- VERSION = '0.14'
2
+ VERSION = '0.14.1'
3
3
  end
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: '0.14'
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-18 00:00:00.000000000 Z
11
+ date: 2014-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef