cap-elb 0.1.1 → 0.2.0

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.
@@ -100,6 +100,11 @@ add this to your cap deploy file:
100
100
  This will give you the list of hosts behind the load balancer that meet the criteria.
101
101
  % cap ec2:list
102
102
 
103
+ Version Informatoin
104
+ =============
105
+ Version 0.2.0 - ELBs behind VPCs didn't work on all 0.1.x, due to no :dns_name for VPC shielded hosts. Now we fall back to IP addresses in 0.2.x and above
106
+
107
+
103
108
  Documentation
104
109
  =============
105
110
  Additional Ruby class/method documentation is available at: [http://rubydoc.info/gems/cap-elb/frames] (http://rubydoc.info/gems/cap-elb/frames)
@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
8
8
  s.authors = ["Dan Miley"]
9
9
  s.email = ["dan.miley@gmail.com"]
10
10
  s.homepage = "http://github.com/danmiley/cap-elb"
11
- s.summary = %q{Capistrano can perform tasks on EC2 intstance managed by individual Amazon ELB instances.}
12
- s.description = %q{Capistrano can perform tasks on the EC2 instances managed by named Amazon ELB instances. }
11
+ s.summary = %q{Capistrano can perform tasks on EC2 intstance managed by individual Amazon ELB instances. New: Now works with VPC managed ELBs.}
12
+ s.description = %q{Capistrano can perform tasks on the EC2 instances managed by named Amazon ELB instances. New: Now works with VPC managed ELBs.}
13
13
  # Various filters are qvailable to allow EC2 instance top level metadata and tags to determine whether the task should be applied on the given instance.
14
14
 
15
15
  s.rubyforge_project = "cap-elb"
@@ -130,7 +130,9 @@ module Capistrano
130
130
 
131
131
  # finally load the derived instances into the serverlist used by capistrano tasks
132
132
  account_instance_list.each do |instance|
133
- server(instance[:dns_name], *args)
133
+ hostname = instance[:dns_name]
134
+ hostname = instance[:ip_address] if hostname.empty? # if host in a VPC, there will be no DNS name, use ip_address instead
135
+ server(hostname, *args)
134
136
  end
135
137
  end
136
138
 
@@ -1,5 +1,5 @@
1
1
  module Cap
2
2
  module Elb
3
- VERSION = "0.1.1"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cap-elb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-24 00:00:00.000000000Z
12
+ date: 2012-07-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: right_aws
16
- requirement: &2152864660 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2152864660
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: capistrano-ext
27
- requirement: &2152864220 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '0'
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *2152864220
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: rspec
38
- requirement: &2152863400 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,9 +53,14 @@ dependencies:
43
53
  version: '0'
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *2152863400
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  description: ! 'Capistrano can perform tasks on the EC2 instances managed by named
48
- Amazon ELB instances. '
63
+ Amazon ELB instances. New: Now works with VPC managed ELBs.'
49
64
  email:
50
65
  - dan.miley@gmail.com
51
66
  executables: []
@@ -83,11 +98,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
98
  version: '0'
84
99
  requirements: []
85
100
  rubyforge_project: cap-elb
86
- rubygems_version: 1.8.11
101
+ rubygems_version: 1.8.24
87
102
  signing_key:
88
103
  specification_version: 3
89
- summary: Capistrano can perform tasks on EC2 intstance managed by individual Amazon
90
- ELB instances.
104
+ summary: ! 'Capistrano can perform tasks on EC2 intstance managed by individual Amazon
105
+ ELB instances. New: Now works with VPC managed ELBs.'
91
106
  test_files:
92
107
  - test/elb_test.rb
93
108
  - test/health/test_elb.rb