engineyard-metadata 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +39 -39
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/bin/ey_ssh_aliases +1 -1
- data/engineyard-metadata.gemspec +5 -2
- data/lib/engineyard-metadata.rb +3 -0
- data/lib/engineyard-metadata/amazon_ec2_api.rb +4 -4
- data/lib/engineyard-metadata/chef_dna.rb +25 -38
- data/lib/engineyard-metadata/engine_yard_cloud_api.rb +87 -47
- data/lib/engineyard-metadata/insider.rb +14 -8
- data/lib/engineyard-metadata/metadata.rb +24 -7
- data/lib/engineyard-metadata/outsider.rb +33 -49
- data/lib/engineyard-metadata/ssh_alias_helper.rb +1 -1
- data/spec/metadata_spec.rb +57 -53
- data/spec/spec_helper.rb +6 -7
- data/spec/support/dna.json +184 -119
- data/spec/support/dot.git.config +1 -1
- data/spec/support/engine_yard_cloud_api_response.json +33 -39
- metadata +23 -9
data/spec/support/dot.git.config
CHANGED
@@ -1,40 +1,34 @@
|
|
1
|
-
{"environments":
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
{"public_hostname":"app_master.compute-1.amazonaws.com","name":null,"status":"running","amazon_id":"i-aaaaaaaa","role":"app_master","id":11111
|
17
|
-
},"ssh_username":"FAKE_SSH_USERNAME","stack_name":"FAKE_STACK_NAME","framework_env":"production","name":"FAKE_ENVIRONMENT_NAME","account":
|
18
|
-
{"name":"FAKE_ACCOUNT_NAME","id":12345
|
19
|
-
},"instances_count":5,"apps":
|
20
|
-
[
|
21
|
-
{"repository_uri":"FAKE_REPOSITORY_URI","name":"FAKE_APP_NAME","account":
|
22
|
-
{"name":"FAKE_ACCOUNT_NAME","id":12345
|
23
|
-
},"id":292301
|
24
|
-
}
|
25
|
-
],"id":382918,"instances":
|
26
|
-
[
|
27
|
-
{"public_hostname":"app_master.compute-1.amazonaws.com","name":null,"status":"running","amazon_id":"i-aaaaaaaa","role":"app_master","id":11111
|
28
|
-
},
|
29
|
-
{"public_hostname":"app_1.compute-1.amazonaws.com","name":null,"status":"running","amazon_id":"i-bbbbbbbb","role":"app","id":22222
|
30
|
-
},
|
31
|
-
{"public_hostname":"FAKE_DB_MASTER_PUBLIC_HOSTNAME","name":null,"status":"running","amazon_id":"i-cccccccc","role":"db_master","id":33333
|
32
|
-
},
|
33
|
-
{"public_hostname":"db_slave_1.compute-1.amazonaws.com","name":null,"status":"running","amazon_id":"i-cccccccc","role":"db_slave","id":44444
|
34
|
-
},
|
35
|
-
{"public_hostname":"FAKE_UTIL_1_PUBLIC_HOSTNAME","name":"data1_production_util1","status":"running","amazon_id":"i-dddddddd","role":"util","id":55555
|
36
|
-
}
|
37
|
-
]
|
38
|
-
}
|
39
|
-
]
|
1
|
+
{"environments":[{"framework_env":"production","name":"app1_production","account":{"name":"Brighter-Planet-Inc","id":1441}
|
2
|
+
,"instances":[],"instances_count":0,"apps":[{"name":"app1","account":{"name":"Brighter-Planet-Inc","id":1441}
|
3
|
+
,"repository_uri":"git@github.com:brighterplanet/app1.git","id":1875}
|
4
|
+
],"ssh_username":"brighterplanet","stack_name":"nginx_passenger","id":2860,"app_master":null}
|
5
|
+
,{"framework_env":"production","name":"wlpf1_production","account":{"name":"Brighter-Planet-Inc","id":1441}
|
6
|
+
,"instances":[],"instances_count":0,"apps":[{"name":"wlpf1","account":{"name":"Brighter-Planet-Inc","id":1441}
|
7
|
+
,"repository_uri":"git@github.com:brighterplanet/wlpf1.git","id":3421}
|
8
|
+
],"ssh_username":"deploy","stack_name":"nginx_passenger","id":4672,"app_master":null}
|
9
|
+
,{"framework_env":"production","name":"data1_production","account":{"name":"Brighter-Planet-Inc","id":1441}
|
10
|
+
,"instances":[{"amazon_id":"i-b8bf3bd5","public_hostname":"ec2-184-73-240-97.compute-1.amazonaws.com","status":"running","name":null,"role":"app_master","id":58142}
|
11
|
+
,{"amazon_id":"i-bcbf3bd1","public_hostname":"ec2-75-101-179-251.compute-1.amazonaws.com","status":"running","name":null,"role":"db_master","id":58143}
|
12
|
+
,{"amazon_id":"i-bebf3bd3","public_hostname":"ec2-174-129-70-51.compute-1.amazonaws.com","status":"running","name":"data1_production_util1","role":"util","id":58144}
|
13
|
+
],"instances_count":3,"apps":[{"name":"data1","account":{"name":"Brighter-Planet-Inc","id":1441}
|
14
|
+
,"repository_uri":"git@github.com:brighterplanet/data1.git","id":7934}
|
15
|
+
],"ssh_username":"deploy","stack_name":"nginx_passenger","id":11391,"app_master":{"amazon_id":"i-b8bf3bd5","public_hostname":"ec2-184-73-240-97.compute-1.amazonaws.com","status":"running","name":null,"role":"app_master","id":58142}
|
40
16
|
}
|
17
|
+
,{"framework_env":"production","name":"cm1_production_red","account":{"name":"Brighter-Planet-Inc","id":1441}
|
18
|
+
,"instances":[{"amazon_id":"i-ede41681","public_hostname":"ec2-184-73-240-13.compute-1.amazonaws.com","status":"running","name":null,"role":"app_master","id":67064}
|
19
|
+
,{"amazon_id":"i-e7e4168b","public_hostname":"ec2-50-16-32-84.compute-1.amazonaws.com","status":"running","name":null,"role":"db_master","id":67065}
|
20
|
+
],"instances_count":2,"apps":[{"name":"cm1_red","account":{"name":"Brighter-Planet-Inc","id":1441}
|
21
|
+
,"repository_uri":"git@github.com:brighterplanet/cm1.git","id":9181}
|
22
|
+
],"ssh_username":"deploy","stack_name":"nginx_unicorn","id":13520,"app_master":{"amazon_id":"i-ede41681","public_hostname":"ec2-184-73-240-13.compute-1.amazonaws.com","status":"running","name":null,"role":"app_master","id":67064}
|
23
|
+
}
|
24
|
+
,{"framework_env":"production","name":"cm1_production_blue","account":{"name":"Brighter-Planet-Inc","id":1441}
|
25
|
+
,"instances":[{"amazon_id":"i-ff17d493","public_hostname":"ec2-174-129-212-130.compute-1.amazonaws.com","status":"running","name":null,"role":"app_master","id":67924}
|
26
|
+
,{"amazon_id":"i-f917d495","public_hostname":"ec2-67-202-19-255.compute-1.amazonaws.com","status":"running","name":null,"role":"db_master","id":67925}
|
27
|
+
],"instances_count":2,"apps":[{"name":"cm1_certified_blue","account":{"name":"Brighter-Planet-Inc","id":1441}
|
28
|
+
,"repository_uri":"git@github.com:brighterplanet/cm1.git","id":10028}
|
29
|
+
,{"name":"cm1_master_blue","account":{"name":"Brighter-Planet-Inc","id":1441}
|
30
|
+
,"repository_uri":"git@github.com:brighterplanet/cm1.git","id":10029}
|
31
|
+
],"ssh_username":"deploy","stack_name":"nginx_unicorn","id":14845,"app_master":{"amazon_id":"i-ff17d493","public_hostname":"ec2-174-129-212-130.compute-1.amazonaws.com","status":"running","name":null,"role":"app_master","id":67924}
|
32
|
+
}
|
33
|
+
]}
|
34
|
+
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: engineyard-metadata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
- 1
|
9
8
|
- 2
|
10
|
-
|
9
|
+
- 0
|
10
|
+
version: 0.2.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Seamus Abshere
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-01-12 00:00:00 -06:00
|
19
19
|
default_executable: ey_ssh_aliases
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
type: :runtime
|
51
51
|
version_requirements: *id002
|
52
52
|
- !ruby/object:Gem::Dependency
|
53
|
-
name:
|
53
|
+
name: eat
|
54
54
|
prerelease: false
|
55
55
|
requirement: &id003 !ruby/object:Gem::Requirement
|
56
56
|
none: false
|
@@ -61,10 +61,10 @@ dependencies:
|
|
61
61
|
segments:
|
62
62
|
- 0
|
63
63
|
version: "0"
|
64
|
-
type: :
|
64
|
+
type: :runtime
|
65
65
|
version_requirements: *id003
|
66
66
|
- !ruby/object:Gem::Dependency
|
67
|
-
name:
|
67
|
+
name: fakeweb
|
68
68
|
prerelease: false
|
69
69
|
requirement: &id004 !ruby/object:Gem::Requirement
|
70
70
|
none: false
|
@@ -78,9 +78,23 @@ dependencies:
|
|
78
78
|
type: :development
|
79
79
|
version_requirements: *id004
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
|
-
name:
|
81
|
+
name: fakefs
|
82
82
|
prerelease: false
|
83
83
|
requirement: &id005 !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
hash: 3
|
89
|
+
segments:
|
90
|
+
- 0
|
91
|
+
version: "0"
|
92
|
+
type: :development
|
93
|
+
version_requirements: *id005
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: rspec
|
96
|
+
prerelease: false
|
97
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
84
98
|
none: false
|
85
99
|
requirements:
|
86
100
|
- - ~>
|
@@ -90,7 +104,7 @@ dependencies:
|
|
90
104
|
- 2
|
91
105
|
version: "2"
|
92
106
|
type: :development
|
93
|
-
version_requirements: *
|
107
|
+
version_requirements: *id006
|
94
108
|
description: Pulls metadata from EC2 and EngineYard so that your EngineYard AppCloud (Amazon EC2) instances know about each other.
|
95
109
|
email: seamus@abshere.net
|
96
110
|
executables:
|