engineyard-cloud-client 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. data/LICENSE +19 -0
  2. data/README.rdoc +7 -0
  3. data/lib/engineyard-cloud-client.rb +149 -0
  4. data/lib/engineyard-cloud-client/errors.rb +38 -0
  5. data/lib/engineyard-cloud-client/model_registry.rb +21 -0
  6. data/lib/engineyard-cloud-client/models.rb +14 -0
  7. data/lib/engineyard-cloud-client/models/account.rb +38 -0
  8. data/lib/engineyard-cloud-client/models/api_struct.rb +50 -0
  9. data/lib/engineyard-cloud-client/models/app.rb +77 -0
  10. data/lib/engineyard-cloud-client/models/app_environment.rb +85 -0
  11. data/lib/engineyard-cloud-client/models/deployment.rb +105 -0
  12. data/lib/engineyard-cloud-client/models/environment.rb +240 -0
  13. data/lib/engineyard-cloud-client/models/instance.rb +15 -0
  14. data/lib/engineyard-cloud-client/models/keypair.rb +32 -0
  15. data/lib/engineyard-cloud-client/models/log.rb +11 -0
  16. data/lib/engineyard-cloud-client/models/user.rb +11 -0
  17. data/lib/engineyard-cloud-client/resolver_result.rb +19 -0
  18. data/lib/engineyard-cloud-client/rest_client_ext.rb +11 -0
  19. data/lib/engineyard-cloud-client/ruby_ext.rb +9 -0
  20. data/lib/engineyard-cloud-client/test.rb +31 -0
  21. data/lib/engineyard-cloud-client/test/fake_awsm.rb +22 -0
  22. data/lib/engineyard-cloud-client/test/fake_awsm/config.ru +207 -0
  23. data/lib/engineyard-cloud-client/test/fake_awsm/models.rb +9 -0
  24. data/lib/engineyard-cloud-client/test/fake_awsm/models/account.rb +13 -0
  25. data/lib/engineyard-cloud-client/test/fake_awsm/models/app.rb +24 -0
  26. data/lib/engineyard-cloud-client/test/fake_awsm/models/app_environment.rb +19 -0
  27. data/lib/engineyard-cloud-client/test/fake_awsm/models/deployments.rb +15 -0
  28. data/lib/engineyard-cloud-client/test/fake_awsm/models/environment.rb +25 -0
  29. data/lib/engineyard-cloud-client/test/fake_awsm/models/instance.rb +23 -0
  30. data/lib/engineyard-cloud-client/test/fake_awsm/models/user.rb +15 -0
  31. data/lib/engineyard-cloud-client/test/fake_awsm/scenarios.rb +325 -0
  32. data/lib/engineyard-cloud-client/test/fake_awsm/views/accounts.rabl +2 -0
  33. data/lib/engineyard-cloud-client/test/fake_awsm/views/apps.rabl +10 -0
  34. data/lib/engineyard-cloud-client/test/fake_awsm/views/base_app_environment.rabl +13 -0
  35. data/lib/engineyard-cloud-client/test/fake_awsm/views/base_environment.rabl +4 -0
  36. data/lib/engineyard-cloud-client/test/fake_awsm/views/environments.rabl +11 -0
  37. data/lib/engineyard-cloud-client/test/fake_awsm/views/instances.rabl +2 -0
  38. data/lib/engineyard-cloud-client/test/fake_awsm/views/resolve_app_environments.rabl +7 -0
  39. data/lib/engineyard-cloud-client/test/fake_awsm/views/resolve_environments.rabl +7 -0
  40. data/lib/engineyard-cloud-client/test/fake_awsm/views/user.rabl +2 -0
  41. data/lib/engineyard-cloud-client/test/scenario.rb +43 -0
  42. data/lib/engineyard-cloud-client/test/ui.rb +33 -0
  43. data/lib/engineyard-cloud-client/version.rb +7 -0
  44. data/spec/engineyard-cloud-client/api_spec.rb +59 -0
  45. data/spec/engineyard-cloud-client/integration/account_spec.rb +18 -0
  46. data/spec/engineyard-cloud-client/integration/app_environment_spec.rb +38 -0
  47. data/spec/engineyard-cloud-client/integration/app_spec.rb +20 -0
  48. data/spec/engineyard-cloud-client/integration/environment_spec.rb +57 -0
  49. data/spec/engineyard-cloud-client/integration/user_spec.rb +18 -0
  50. data/spec/engineyard-cloud-client/models/api_struct_spec.rb +41 -0
  51. data/spec/engineyard-cloud-client/models/app_spec.rb +64 -0
  52. data/spec/engineyard-cloud-client/models/environment_spec.rb +300 -0
  53. data/spec/engineyard-cloud-client/models/instance_spec.rb +44 -0
  54. data/spec/engineyard-cloud-client/models/keypair_spec.rb +58 -0
  55. data/spec/spec_helper.rb +50 -0
  56. data/spec/support/helpers.rb +16 -0
  57. data/spec/support/matchers.rb +2 -0
  58. metadata +377 -0
@@ -0,0 +1,16 @@
1
+ require 'rest_client'
2
+
3
+ module SpecHelpers
4
+ def test_ui
5
+ @test_ui ||= EY::CloudClient::Test::UI.new
6
+ end
7
+
8
+ def cloud_client(token = 'asdf', ui = test_ui)
9
+ @cloud_client ||= EY::CloudClient.new(token, ui)
10
+ end
11
+
12
+ def scenario_cloud_client(scenario)
13
+ @scenario = EY::CloudClient::Test::Scenario[scenario]
14
+ @scenario.cloud_client
15
+ end
16
+ end
@@ -0,0 +1,2 @@
1
+ require 'rspec/matchers'
2
+
metadata ADDED
@@ -0,0 +1,377 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: engineyard-cloud-client
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - EY Cloud Team
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-05-18 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rest-client
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 1.6.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 1.6.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: multi_json
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: launchy
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - '='
52
+ - !ruby/object:Gem::Version
53
+ version: 2.0.5
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 2.0.5
62
+ - !ruby/object:Gem::Dependency
63
+ name: rspec
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: '2.0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: '2.0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: rake
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: rdoc
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: fakeweb
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: fakeweb-matcher
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: sinatra
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ - !ruby/object:Gem::Dependency
159
+ name: realweb
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ~>
164
+ - !ruby/object:Gem::Version
165
+ version: 0.2.2
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ~>
172
+ - !ruby/object:Gem::Version
173
+ version: 0.2.2
174
+ - !ruby/object:Gem::Dependency
175
+ name: dm-core
176
+ requirement: !ruby/object:Gem::Requirement
177
+ none: false
178
+ requirements:
179
+ - - ! '>='
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ type: :development
183
+ prerelease: false
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ - !ruby/object:Gem::Dependency
191
+ name: dm-migrations
192
+ requirement: !ruby/object:Gem::Requirement
193
+ none: false
194
+ requirements:
195
+ - - ! '>='
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
198
+ type: :development
199
+ prerelease: false
200
+ version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - ! '>='
204
+ - !ruby/object:Gem::Version
205
+ version: '0'
206
+ - !ruby/object:Gem::Dependency
207
+ name: dm-aggregates
208
+ requirement: !ruby/object:Gem::Requirement
209
+ none: false
210
+ requirements:
211
+ - - ! '>='
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
214
+ type: :development
215
+ prerelease: false
216
+ version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
218
+ requirements:
219
+ - - ! '>='
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
222
+ - !ruby/object:Gem::Dependency
223
+ name: dm-sqlite-adapter
224
+ requirement: !ruby/object:Gem::Requirement
225
+ none: false
226
+ requirements:
227
+ - - ! '>='
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ none: false
234
+ requirements:
235
+ - - ! '>='
236
+ - !ruby/object:Gem::Version
237
+ version: '0'
238
+ - !ruby/object:Gem::Dependency
239
+ name: ey_resolver
240
+ requirement: !ruby/object:Gem::Requirement
241
+ none: false
242
+ requirements:
243
+ - - ~>
244
+ - !ruby/object:Gem::Version
245
+ version: 0.2.1
246
+ type: :development
247
+ prerelease: false
248
+ version_requirements: !ruby/object:Gem::Requirement
249
+ none: false
250
+ requirements:
251
+ - - ~>
252
+ - !ruby/object:Gem::Version
253
+ version: 0.2.1
254
+ - !ruby/object:Gem::Dependency
255
+ name: rabl
256
+ requirement: !ruby/object:Gem::Requirement
257
+ none: false
258
+ requirements:
259
+ - - ! '>='
260
+ - !ruby/object:Gem::Version
261
+ version: '0'
262
+ type: :development
263
+ prerelease: false
264
+ version_requirements: !ruby/object:Gem::Requirement
265
+ none: false
266
+ requirements:
267
+ - - ! '>='
268
+ - !ruby/object:Gem::Version
269
+ version: '0'
270
+ description: This gem connects to the EY Cloud API
271
+ email: cloud@engineyard.com
272
+ executables: []
273
+ extensions: []
274
+ extra_rdoc_files: []
275
+ files:
276
+ - lib/engineyard-cloud-client/errors.rb
277
+ - lib/engineyard-cloud-client/model_registry.rb
278
+ - lib/engineyard-cloud-client/models/account.rb
279
+ - lib/engineyard-cloud-client/models/api_struct.rb
280
+ - lib/engineyard-cloud-client/models/app.rb
281
+ - lib/engineyard-cloud-client/models/app_environment.rb
282
+ - lib/engineyard-cloud-client/models/deployment.rb
283
+ - lib/engineyard-cloud-client/models/environment.rb
284
+ - lib/engineyard-cloud-client/models/instance.rb
285
+ - lib/engineyard-cloud-client/models/keypair.rb
286
+ - lib/engineyard-cloud-client/models/log.rb
287
+ - lib/engineyard-cloud-client/models/user.rb
288
+ - lib/engineyard-cloud-client/models.rb
289
+ - lib/engineyard-cloud-client/resolver_result.rb
290
+ - lib/engineyard-cloud-client/rest_client_ext.rb
291
+ - lib/engineyard-cloud-client/ruby_ext.rb
292
+ - lib/engineyard-cloud-client/test/fake_awsm/config.ru
293
+ - lib/engineyard-cloud-client/test/fake_awsm/models/account.rb
294
+ - lib/engineyard-cloud-client/test/fake_awsm/models/app.rb
295
+ - lib/engineyard-cloud-client/test/fake_awsm/models/app_environment.rb
296
+ - lib/engineyard-cloud-client/test/fake_awsm/models/deployments.rb
297
+ - lib/engineyard-cloud-client/test/fake_awsm/models/environment.rb
298
+ - lib/engineyard-cloud-client/test/fake_awsm/models/instance.rb
299
+ - lib/engineyard-cloud-client/test/fake_awsm/models/user.rb
300
+ - lib/engineyard-cloud-client/test/fake_awsm/models.rb
301
+ - lib/engineyard-cloud-client/test/fake_awsm/scenarios.rb
302
+ - lib/engineyard-cloud-client/test/fake_awsm/views/accounts.rabl
303
+ - lib/engineyard-cloud-client/test/fake_awsm/views/apps.rabl
304
+ - lib/engineyard-cloud-client/test/fake_awsm/views/base_app_environment.rabl
305
+ - lib/engineyard-cloud-client/test/fake_awsm/views/base_environment.rabl
306
+ - lib/engineyard-cloud-client/test/fake_awsm/views/environments.rabl
307
+ - lib/engineyard-cloud-client/test/fake_awsm/views/instances.rabl
308
+ - lib/engineyard-cloud-client/test/fake_awsm/views/resolve_app_environments.rabl
309
+ - lib/engineyard-cloud-client/test/fake_awsm/views/resolve_environments.rabl
310
+ - lib/engineyard-cloud-client/test/fake_awsm/views/user.rabl
311
+ - lib/engineyard-cloud-client/test/fake_awsm.rb
312
+ - lib/engineyard-cloud-client/test/scenario.rb
313
+ - lib/engineyard-cloud-client/test/ui.rb
314
+ - lib/engineyard-cloud-client/test.rb
315
+ - lib/engineyard-cloud-client/version.rb
316
+ - lib/engineyard-cloud-client.rb
317
+ - LICENSE
318
+ - README.rdoc
319
+ - spec/engineyard-cloud-client/api_spec.rb
320
+ - spec/engineyard-cloud-client/integration/account_spec.rb
321
+ - spec/engineyard-cloud-client/integration/app_environment_spec.rb
322
+ - spec/engineyard-cloud-client/integration/app_spec.rb
323
+ - spec/engineyard-cloud-client/integration/environment_spec.rb
324
+ - spec/engineyard-cloud-client/integration/user_spec.rb
325
+ - spec/engineyard-cloud-client/models/api_struct_spec.rb
326
+ - spec/engineyard-cloud-client/models/app_spec.rb
327
+ - spec/engineyard-cloud-client/models/environment_spec.rb
328
+ - spec/engineyard-cloud-client/models/instance_spec.rb
329
+ - spec/engineyard-cloud-client/models/keypair_spec.rb
330
+ - spec/spec_helper.rb
331
+ - spec/support/helpers.rb
332
+ - spec/support/matchers.rb
333
+ homepage: http://github.com/engineyard/engineyard-cloud-client
334
+ licenses: []
335
+ post_install_message:
336
+ rdoc_options: []
337
+ require_paths:
338
+ - lib
339
+ required_ruby_version: !ruby/object:Gem::Requirement
340
+ none: false
341
+ requirements:
342
+ - - ! '>='
343
+ - !ruby/object:Gem::Version
344
+ version: '0'
345
+ segments:
346
+ - 0
347
+ hash: 3533800355327149565
348
+ required_rubygems_version: !ruby/object:Gem::Requirement
349
+ none: false
350
+ requirements:
351
+ - - ! '>='
352
+ - !ruby/object:Gem::Version
353
+ version: '0'
354
+ segments:
355
+ - 0
356
+ hash: 3533800355327149565
357
+ requirements: []
358
+ rubyforge_project:
359
+ rubygems_version: 1.8.24
360
+ signing_key:
361
+ specification_version: 3
362
+ summary: EY Cloud API Client
363
+ test_files:
364
+ - spec/engineyard-cloud-client/api_spec.rb
365
+ - spec/engineyard-cloud-client/integration/account_spec.rb
366
+ - spec/engineyard-cloud-client/integration/app_environment_spec.rb
367
+ - spec/engineyard-cloud-client/integration/app_spec.rb
368
+ - spec/engineyard-cloud-client/integration/environment_spec.rb
369
+ - spec/engineyard-cloud-client/integration/user_spec.rb
370
+ - spec/engineyard-cloud-client/models/api_struct_spec.rb
371
+ - spec/engineyard-cloud-client/models/app_spec.rb
372
+ - spec/engineyard-cloud-client/models/environment_spec.rb
373
+ - spec/engineyard-cloud-client/models/instance_spec.rb
374
+ - spec/engineyard-cloud-client/models/keypair_spec.rb
375
+ - spec/spec_helper.rb
376
+ - spec/support/helpers.rb
377
+ - spec/support/matchers.rb