ironfan 5.0.5 → 5.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.0.5
1
+ 5.0.8
data/ironfan.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "ironfan"
8
- s.version = "5.0.5"
8
+ s.version = "5.0.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Infochimps"]
12
- s.date = "2013-12-18"
12
+ s.date = "2014-01-16"
13
13
  s.description = "Ironfan allows you to orchestrate not just systems but clusters of machines. It includes a powerful layer on top of knife and a collection of cloud cookbooks."
14
14
  s.email = "coders@infochimps.com"
15
15
  s.extra_rdoc_files = [
@@ -53,13 +53,17 @@ class Chef
53
53
 
54
54
  (ui.fatal("No nodes returned from search!"); exit 10) if addresses.nil? || addresses.length == 0
55
55
 
56
- @hostname_to_ironfan_hostname = Hash[
57
- target.map do |c|
58
- [c.machine.public_hostname, c.machine.tags['Name']]
59
- end
60
- ]
56
+ # Need to include both public host and public ip; sometimes these are different
57
+ @hostname_to_ironfan_hostname = target.to_a.inject({}) do |remap, c|
58
+ remap[c.machine.public_hostname] = c.machine.tags['Name']
59
+ remap[c.machine.public_ip_address] = c.machine.tags['Name']
60
+ remap
61
+ end
62
+
61
63
  @longest_ironfan_hostname = @hostname_to_ironfan_hostname.values.group_by(&:size).max.last[0].size
62
64
 
65
+ @action_nodes = Chef::Search::Query.new.search(:node, "node_name:#{@name_args[0]}*")[0]
66
+
63
67
  session_from_list(addresses)
64
68
  end
65
69
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ironfan
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.5
4
+ version: 5.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-18 00:00:00.000000000 Z
12
+ date: 2014-01-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef
@@ -408,9 +408,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
408
408
  - - ! '>='
409
409
  - !ruby/object:Gem::Version
410
410
  version: '0'
411
- segments:
412
- - 0
413
- hash: 484463336952963862
414
411
  required_rubygems_version: !ruby/object:Gem::Requirement
415
412
  none: false
416
413
  requirements:
@@ -453,3 +450,4 @@ test_files:
453
450
  - spec/spec_helper/dummy_diff_drawer.rb
454
451
  - spec/spec_helper.rb
455
452
  - spec/test_config.rb
453
+ has_rdoc: