ironfan 4.6.0 → 4.6.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.
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- # v4.6.0
1
+ # v4.6.1:
2
+ * Fixes nested array bug when computing list of AZs for an ELB (thanks @nickmarden)
3
+ * Cleaning up overzealous Elastic IP inclusion (alternative fix to #222, thanks @nickmarden)
4
+
5
+ # v4.6.0:
2
6
  * Elastic IP attachment and SSH support (changes ec2.public_ip to ec2.elastic_ip for clarity - thanks @schade)
3
7
  * Expanded development dependencies, to allow avoiding bundler verbosity bug by rolling back to older version
4
8
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.6.0
1
+ 4.6.1
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 = "4.6.0"
8
+ s.version = "4.6.1"
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 = "2012-12-10"
12
+ s.date = "2012-12-11"
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 = [
@@ -50,7 +50,7 @@ module Ironfan
50
50
  #
51
51
 
52
52
  def self.save!(computer)
53
- return unless computer.created?
53
+ return unless (computer.created? and not computer.server.ec2.elastic_ip.nil?)
54
54
  elastic_ip = computer.server.ec2.elastic_ip
55
55
  Ironfan.step(computer.name, "associating Elastic IP #{elastic_ip}", :blue)
56
56
  Ironfan.unless_dry_run do
@@ -101,8 +101,8 @@ module Ironfan
101
101
  # Did the list of availability zones for this ELB change?
102
102
  if availability_zones != elb.availability_zones.sort
103
103
  Ironfan.step(elb.name, " updating availability zones to #{availability_zones.join(', ')}", :blue)
104
- to_add = [ availability_zones - elb.availability_zones ]
105
- to_remove = [ elb.availability_zones - availability_zones ]
104
+ to_add = availability_zones - elb.availability_zones
105
+ to_remove = elb.availability_zones - availability_zones
106
106
  elb.enable_availability_zones(to_add) unless to_add.empty?
107
107
  elb.disable_availability_zones(to_remove) unless to_remove.empty?
108
108
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ironfan
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 4.6.0
5
+ version: 4.6.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Infochimps
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-12-10 00:00:00 Z
13
+ date: 2012-12-11 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: chef
@@ -282,7 +282,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
282
282
  requirements:
283
283
  - - ">="
284
284
  - !ruby/object:Gem::Version
285
- hash: 852641782285257729
285
+ hash: -1748752908376121561
286
286
  segments:
287
287
  - 0
288
288
  version: "0"