ey_cloud_awareness 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/ey_cloud_awareness.gemspec +2 -2
- data/lib/engine_yard_cloud_instance.rb +3 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
data/ey_cloud_awareness.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ey_cloud_awareness}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Seamus Abshere"]
|
12
|
-
s.date = %q{2009-11-
|
12
|
+
s.date = %q{2009-11-06}
|
13
13
|
s.description = %q{Make your EngineYard cloud instances aware of each other.}
|
14
14
|
s.email = %q{seamus@abshere.net}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -100,6 +100,8 @@ class EngineYardCloudInstance
|
|
100
100
|
# using current as a pointer
|
101
101
|
if dna[:db_host] == instance_description[:dns_name] or dna[:db_host] == instance_description[:private_dns_name]
|
102
102
|
current[:instance_role] = 'db'
|
103
|
+
elsif Array.wrap(dna[:db_slaves]).include? instance_description[:private_dns_name]
|
104
|
+
current[:instance_role] = 'db_slave'
|
103
105
|
elsif Array.wrap(dna[:utility_instances]).include? instance_description[:private_dns_name]
|
104
106
|
current[:instance_role] = 'utility'
|
105
107
|
elsif dna[:master_app_server][:private_dns_name] == instance_description[:private_dns_name]
|
@@ -112,6 +114,7 @@ class EngineYardCloudInstance
|
|
112
114
|
current[:aws_state] = instance_description[:aws_state]
|
113
115
|
current[:aws_groups] = instance_description[:aws_groups]
|
114
116
|
current[:aws_instance_id] = instance_description[:aws_instance_id]
|
117
|
+
current[:users] = instance_description[:users]
|
115
118
|
end
|
116
119
|
@_data = hash.recursive_symbolize_keys!
|
117
120
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ey_cloud_awareness
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seamus Abshere
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-06 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|