cft_smartcloud 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. data/.gitignore +1 -0
  2. data/CHANGELOG +11 -0
  3. data/README.md +106 -0
  4. data/VERSION +1 -1
  5. data/bin/cft_smartcloud +33 -7
  6. data/bin/smartcloud +33 -7
  7. data/cft_smartcloud.gemspec +84 -20
  8. data/lib/config/config.yml +2 -0
  9. data/lib/curl_client.rb +42 -0
  10. data/lib/rest-client-1.6.6-master/.gitignore +6 -0
  11. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/README.rdoc +10 -1
  12. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/Rakefile +0 -0
  13. data/lib/rest-client-1.6.6-master/VERSION +1 -0
  14. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/bin/restclient +5 -4
  15. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/history.md +22 -0
  16. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/lib/rest-client.rb +0 -0
  17. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/lib/rest_client.rb +0 -0
  18. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/lib/restclient/abstract_response.rb +0 -0
  19. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/lib/restclient/exceptions.rb +0 -0
  20. data/lib/rest-client-1.6.6-master/lib/restclient/net_http_ext.rb +55 -0
  21. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/lib/restclient/payload.rb +17 -2
  22. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/lib/restclient/raw_response.rb +0 -0
  23. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/lib/restclient/request.rb +21 -19
  24. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/lib/restclient/resource.rb +0 -0
  25. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/lib/restclient/response.rb +0 -0
  26. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/lib/restclient.rb +0 -0
  27. data/lib/rest-client-1.6.6-master/rest-client.gemspec +76 -0
  28. data/lib/rest-client-1.6.6-master/spec/abstract_response_spec.rb +85 -0
  29. data/lib/rest-client-1.6.6-master/spec/base.rb +16 -0
  30. data/lib/rest-client-1.6.6-master/spec/exceptions_spec.rb +98 -0
  31. data/lib/rest-client-1.6.6-master/spec/integration/certs/equifax.crt +19 -0
  32. data/lib/rest-client-1.6.6-master/spec/integration/certs/verisign.crt +14 -0
  33. data/lib/rest-client-1.6.6-master/spec/integration/request_spec.rb +25 -0
  34. data/lib/rest-client-1.6.6-master/spec/integration_spec.rb +38 -0
  35. data/lib/rest-client-1.6.6-master/spec/master_shake.jpg +0 -0
  36. data/lib/rest-client-1.6.6-master/spec/payload_spec.rb +234 -0
  37. data/lib/rest-client-1.6.6-master/spec/raw_response_spec.rb +17 -0
  38. data/lib/rest-client-1.6.6-master/spec/request2_spec.rb +40 -0
  39. data/lib/rest-client-1.6.6-master/spec/request_spec.rb +536 -0
  40. data/lib/rest-client-1.6.6-master/spec/resource_spec.rb +134 -0
  41. data/lib/rest-client-1.6.6-master/spec/response_spec.rb +169 -0
  42. data/lib/rest-client-1.6.6-master/spec/restclient_spec.rb +73 -0
  43. data/lib/slop-2.3.1/.gemtest +0 -0
  44. data/lib/slop-2.3.1/.gitignore +6 -0
  45. data/lib/slop-2.3.1/.yardopts +6 -0
  46. data/lib/slop-2.3.1/CHANGES.md +137 -0
  47. data/lib/slop-2.3.1/LICENSE +20 -0
  48. data/lib/slop-2.3.1/README.md +293 -0
  49. data/lib/slop-2.3.1/Rakefile +6 -0
  50. data/lib/slop-2.3.1/lib/slop.rb +1022 -0
  51. data/lib/slop-2.3.1/slop.gemspec +11 -0
  52. data/lib/slop-2.3.1/test/commands_test.rb +151 -0
  53. data/lib/slop-2.3.1/test/helper.rb +13 -0
  54. data/lib/slop-2.3.1/test/option_test.rb +198 -0
  55. data/lib/slop-2.3.1/test/slop_test.rb +574 -0
  56. data/lib/smartcloud.rb +186 -116
  57. data/lib/terminal-table-1.4.4/History.rdoc +53 -0
  58. data/lib/terminal-table-1.4.4/Manifest +24 -0
  59. data/lib/terminal-table-1.4.4/README.rdoc +240 -0
  60. data/lib/terminal-table-1.4.4/Rakefile +15 -0
  61. data/lib/terminal-table-1.4.4/Todo.rdoc +14 -0
  62. data/lib/terminal-table-1.4.4/examples/examples.rb +80 -0
  63. data/lib/terminal-table-1.4.4/lib/terminal-table/cell.rb +88 -0
  64. data/lib/terminal-table-1.4.4/lib/terminal-table/core_ext.rb +8 -0
  65. data/lib/terminal-table-1.4.4/lib/terminal-table/import.rb +4 -0
  66. data/lib/terminal-table-1.4.4/lib/terminal-table/row.rb +48 -0
  67. data/lib/terminal-table-1.4.4/lib/terminal-table/separator.rb +14 -0
  68. data/lib/terminal-table-1.4.4/lib/terminal-table/style.rb +61 -0
  69. data/lib/terminal-table-1.4.4/lib/terminal-table/table.rb +217 -0
  70. data/lib/terminal-table-1.4.4/lib/terminal-table/table_helper.rb +9 -0
  71. data/lib/terminal-table-1.4.4/lib/terminal-table/version.rb +6 -0
  72. data/lib/terminal-table-1.4.4/lib/terminal-table.rb +27 -0
  73. data/lib/terminal-table-1.4.4/spec/cell_spec.rb +54 -0
  74. data/lib/terminal-table-1.4.4/spec/core_ext_spec.rb +18 -0
  75. data/lib/terminal-table-1.4.4/spec/import_spec.rb +11 -0
  76. data/lib/terminal-table-1.4.4/spec/spec.opts +1 -0
  77. data/lib/terminal-table-1.4.4/spec/spec_helper.rb +8 -0
  78. data/lib/terminal-table-1.4.4/spec/table_spec.rb +525 -0
  79. data/lib/terminal-table-1.4.4/tasks/docs.rake +13 -0
  80. data/lib/terminal-table-1.4.4/tasks/gemspec.rake +3 -0
  81. data/lib/terminal-table-1.4.4/tasks/spec.rake +25 -0
  82. data/lib/terminal-table-1.4.4/terminal-table.gemspec +30 -0
  83. data/responses/addresses +26 -0
  84. data/responses/addresses.blank +2 -0
  85. data/responses/instances +74 -0
  86. data/responses/keys +33 -0
  87. data/responses/locations +142 -0
  88. data/responses/offerings_image +3780 -0
  89. data/responses/storage +379 -0
  90. metadata +86 -22
  91. data/README.rdoc +0 -75
  92. data/lib/rest-client-1.6.3/VERSION +0 -1
  93. data/lib/rest-client-1.6.3/lib/restclient/net_http_ext.rb +0 -21
data/responses/storage ADDED
@@ -0,0 +1,379 @@
1
+ <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2
+ <ns2:DescribeVolumesResponse xmlns:ns2="http://www.ibm.com/xmlns/b2b/cloud/api/2010-03-31">
3
+
4
+ <Volume>
5
+ <ID>18421</ID>
6
+ <Location>101</Location>
7
+ <OfferingID>20001208</OfferingID>
8
+ <InstanceID>0</InstanceID>
9
+ <Owner>ibmcloud@cohesiveft.com</Owner>
10
+ <Name>sit-tomcat7check-75ZzM</Name>
11
+ <Format>ext3</Format>
12
+ <Size>256</Size>
13
+ <State>4</State>
14
+ <ProductCodes />
15
+ <CreatedTime>2011-09-01T19:38:05.000Z</CreatedTime>
16
+ <StorageArea>
17
+ <ID></ID>
18
+ <Name></Name>
19
+ <Description></Description>
20
+ </StorageArea>
21
+ <IOPrice CountryCode="897">
22
+ <EffectiveDate>2011-08-12T00:00:00.000Z</EffectiveDate>
23
+ <CurrencyCode>USD</CurrencyCode>
24
+ <Rate>0.11</Rate>
25
+ <PricePerQuantity>1</PricePerQuantity>
26
+ <UnitOfMeasure>CNT</UnitOfMeasure>
27
+ </IOPrice>
28
+ </Volume>
29
+ <Volume>
30
+ <ID>18480</ID>
31
+ <Location>41</Location>
32
+ <OfferingID>20001208</OfferingID>
33
+ <InstanceID>0</InstanceID>
34
+ <Owner>ibmcloud@cohesiveft.com</Owner>
35
+ <Name>sit-cap-cal-agent499-ibm-edition-75h8c</Name>
36
+ <Format>ext3</Format>
37
+ <Size>256</Size>
38
+ <State>4</State>
39
+ <ProductCodes />
40
+ <CreatedTime>2011-09-06T18:39:33.000Z</CreatedTime>
41
+ <StorageArea>
42
+ <ID></ID>
43
+ <Name></Name>
44
+ <Description></Description>
45
+ </StorageArea>
46
+ <IOPrice CountryCode="897">
47
+ <EffectiveDate>2011-08-12T00:00:00.000Z</EffectiveDate>
48
+ <CurrencyCode>USD</CurrencyCode>
49
+ <Rate>0.11</Rate>
50
+ <PricePerQuantity>1</PricePerQuantity>
51
+ <UnitOfMeasure>CNT</UnitOfMeasure>
52
+ </IOPrice>
53
+ </Volume>
54
+ <Volume>
55
+ <ID>18506</ID>
56
+ <Location>101</Location>
57
+ <OfferingID>20001208</OfferingID>
58
+ <InstanceID>0</InstanceID>
59
+ <Owner>ibmcloud@cohesiveft.com</Owner>
60
+ <Name>sit-cap-cal-agent499-ibm-edition-75Qg2</Name>
61
+ <Format>ext3</Format>
62
+ <Size>256</Size>
63
+ <State>4</State>
64
+ <ProductCodes />
65
+ <CreatedTime>2011-09-07T16:48:02.000Z</CreatedTime>
66
+ <StorageArea>
67
+ <ID></ID>
68
+ <Name></Name>
69
+ <Description></Description>
70
+ </StorageArea>
71
+ <IOPrice CountryCode="897">
72
+ <EffectiveDate>2011-08-12T00:00:00.000Z</EffectiveDate>
73
+ <CurrencyCode>USD</CurrencyCode>
74
+ <Rate>0.11</Rate>
75
+ <PricePerQuantity>1</PricePerQuantity>
76
+ <UnitOfMeasure>CNT</UnitOfMeasure>
77
+ </IOPrice>
78
+ </Volume>
79
+ <Volume>
80
+ <ID>18573</ID>
81
+ <Location>101</Location>
82
+ <OfferingID>20001208</OfferingID>
83
+ <InstanceID>0</InstanceID>
84
+ <Owner>ibmcloud@cohesiveft.com</Owner>
85
+ <Name>sit-context3-server-qa1-75cZ9</Name>
86
+ <Format>ext3</Format>
87
+ <Size>256</Size>
88
+ <State>4</State>
89
+ <ProductCodes />
90
+ <CreatedTime>2011-09-11T01:25:35.000Z</CreatedTime>
91
+ <StorageArea>
92
+ <ID></ID>
93
+ <Name></Name>
94
+ <Description></Description>
95
+ </StorageArea>
96
+ <IOPrice CountryCode="897">
97
+ <EffectiveDate>2011-08-12T00:00:00.000Z</EffectiveDate>
98
+ <CurrencyCode>USD</CurrencyCode>
99
+ <Rate>0.11</Rate>
100
+ <PricePerQuantity>1</PricePerQuantity>
101
+ <UnitOfMeasure>CNT</UnitOfMeasure>
102
+ </IOPrice>
103
+ </Volume>
104
+ <Volume>
105
+ <ID>18641</ID>
106
+ <Location>101</Location>
107
+ <OfferingID>20001208</OfferingID>
108
+ <InstanceID>0</InstanceID>
109
+ <Owner>ibmcloud@cohesiveft.com</Owner>
110
+ <Name>sit-zend-server-latest-75Sjd</Name>
111
+ <Format>ext3</Format>
112
+ <Size>256</Size>
113
+ <State>4</State>
114
+ <ProductCodes />
115
+ <CreatedTime>2011-09-12T23:36:25.000Z</CreatedTime>
116
+ <StorageArea>
117
+ <ID></ID>
118
+ <Name></Name>
119
+ <Description></Description>
120
+ </StorageArea>
121
+ <IOPrice CountryCode="897">
122
+ <EffectiveDate>2011-08-12T00:00:00.000Z</EffectiveDate>
123
+ <CurrencyCode>USD</CurrencyCode>
124
+ <Rate>0.11</Rate>
125
+ <PricePerQuantity>1</PricePerQuantity>
126
+ <UnitOfMeasure>CNT</UnitOfMeasure>
127
+ </IOPrice>
128
+ </Volume>
129
+ <Volume>
130
+ <ID>19698</ID>
131
+ <Location>41</Location>
132
+ <OfferingID>20001208</OfferingID>
133
+ <InstanceID>0</InstanceID>
134
+ <Owner>ibmcloud@cohesiveft.com</Owner>
135
+ <Name>sit-zend-server-latest-75rC4</Name>
136
+ <Format>ext3</Format>
137
+ <Size>256</Size>
138
+ <State>4</State>
139
+ <ProductCodes />
140
+ <CreatedTime>2011-10-05T21:01:57.000Z</CreatedTime>
141
+ <StorageArea>
142
+ <ID></ID>
143
+ <Name></Name>
144
+ <Description></Description>
145
+ </StorageArea>
146
+ <IOPrice CountryCode="897">
147
+ <EffectiveDate>2011-08-12T00:00:00.000Z</EffectiveDate>
148
+ <CurrencyCode>USD</CurrencyCode>
149
+ <Rate>0.11</Rate>
150
+ <PricePerQuantity>1</PricePerQuantity>
151
+ <UnitOfMeasure>CNT</UnitOfMeasure>
152
+ </IOPrice>
153
+ </Volume>
154
+ <Volume>
155
+ <ID>20498</ID>
156
+ <Location>82</Location>
157
+ <OfferingID>20001208</OfferingID>
158
+ <InstanceID>149523</InstanceID>
159
+ <Owner>ibmcloud@cohesiveft.com</Owner>
160
+ <Name>sit-big-insights-lite-361j24</Name>
161
+ <Format>ext3</Format>
162
+ <Size>256</Size>
163
+ <State>5</State>
164
+ <ProductCodes />
165
+ <CreatedTime>2011-10-25T17:28:17.000Z</CreatedTime>
166
+ <StorageArea>
167
+ <ID></ID>
168
+ <Name></Name>
169
+ <Description></Description>
170
+ </StorageArea>
171
+ <IOPrice CountryCode="897">
172
+ <EffectiveDate>2011-08-12T00:00:00.000Z</EffectiveDate>
173
+ <CurrencyCode>USD</CurrencyCode>
174
+ <Rate>0.11</Rate>
175
+ <PricePerQuantity>1</PricePerQuantity>
176
+ <UnitOfMeasure>CNT</UnitOfMeasure>
177
+ </IOPrice>
178
+ </Volume>
179
+ <Volume>
180
+ <ID>20502</ID>
181
+ <Location>82</Location>
182
+ <OfferingID>20001208</OfferingID>
183
+ <InstanceID>149524</InstanceID>
184
+ <Owner>ibmcloud@cohesiveft.com</Owner>
185
+ <Name>sit-big-insights-enterprise-linux64-361vBW</Name>
186
+ <Format>ext3</Format>
187
+ <Size>256</Size>
188
+ <State>5</State>
189
+ <ProductCodes />
190
+ <CreatedTime>2011-10-25T19:02:54.000Z</CreatedTime>
191
+ <StorageArea>
192
+ <ID></ID>
193
+ <Name></Name>
194
+ <Description></Description>
195
+ </StorageArea>
196
+ <IOPrice CountryCode="897">
197
+ <EffectiveDate>2011-08-12T00:00:00.000Z</EffectiveDate>
198
+ <CurrencyCode>USD</CurrencyCode>
199
+ <Rate>0.11</Rate>
200
+ <PricePerQuantity>1</PricePerQuantity>
201
+ <UnitOfMeasure>CNT</UnitOfMeasure>
202
+ </IOPrice>
203
+ </Volume>
204
+ <Volume>
205
+ <ID>20503</ID>
206
+ <Location>82</Location>
207
+ <OfferingID>20001208</OfferingID>
208
+ <InstanceID>0</InstanceID>
209
+ <Owner>ibmcloud@cohesiveft.com</Owner>
210
+ <Name>sit-big-insights-lite-linux64-3612rD</Name>
211
+ <Format>ext3</Format>
212
+ <Size>256</Size>
213
+ <State>4</State>
214
+ <ProductCodes />
215
+ <CreatedTime>2011-10-25T19:17:18.000Z</CreatedTime>
216
+ <StorageArea>
217
+ <ID></ID>
218
+ <Name></Name>
219
+ <Description></Description>
220
+ </StorageArea>
221
+ <IOPrice CountryCode="897">
222
+ <EffectiveDate>2011-08-12T00:00:00.000Z</EffectiveDate>
223
+ <CurrencyCode>USD</CurrencyCode>
224
+ <Rate>0.11</Rate>
225
+ <PricePerQuantity>1</PricePerQuantity>
226
+ <UnitOfMeasure>CNT</UnitOfMeasure>
227
+ </IOPrice>
228
+ </Volume>
229
+ <Volume>
230
+ <ID>16910</ID>
231
+ <Location>101</Location>
232
+ <OfferingID>20001208</OfferingID>
233
+ <InstanceID>0</InstanceID>
234
+ <Owner>ibmcloud@cohesiveft.com</Owner>
235
+ <Name>sit-rhel-amp-755yY</Name>
236
+ <Format>ext3</Format>
237
+ <Size>256</Size>
238
+ <State>4</State>
239
+ <ProductCodes />
240
+ <CreatedTime>2011-07-22T18:39:54.000Z</CreatedTime>
241
+ <StorageArea>
242
+ <ID></ID>
243
+ <Name></Name>
244
+ <Description></Description>
245
+ </StorageArea>
246
+ <IOPrice CountryCode="897">
247
+ <EffectiveDate>2011-08-12T00:00:00.000Z</EffectiveDate>
248
+ <CurrencyCode>USD</CurrencyCode>
249
+ <Rate>0.11</Rate>
250
+ <PricePerQuantity>1</PricePerQuantity>
251
+ <UnitOfMeasure>CNT</UnitOfMeasure>
252
+ </IOPrice>
253
+ </Volume>
254
+ <Volume>
255
+ <ID>17519</ID>
256
+ <Location>101</Location>
257
+ <OfferingID>20001208</OfferingID>
258
+ <InstanceID>0</InstanceID>
259
+ <Owner>ibmcloud@cohesiveft.com</Owner>
260
+ <Name>sit-lamp-136xH</Name>
261
+ <Format>ext3</Format>
262
+ <Size>256</Size>
263
+ <State>4</State>
264
+ <ProductCodes />
265
+ <CreatedTime>2011-08-08T23:46:19.000Z</CreatedTime>
266
+ <StorageArea>
267
+ <ID></ID>
268
+ <Name></Name>
269
+ <Description></Description>
270
+ </StorageArea>
271
+ <IOPrice CountryCode="897">
272
+ <EffectiveDate>2011-08-12T00:00:00.000Z</EffectiveDate>
273
+ <CurrencyCode>USD</CurrencyCode>
274
+ <Rate>0.11</Rate>
275
+ <PricePerQuantity>1</PricePerQuantity>
276
+ <UnitOfMeasure>CNT</UnitOfMeasure>
277
+ </IOPrice>
278
+ </Volume>
279
+ <Volume>
280
+ <ID>17520</ID>
281
+ <Location>101</Location>
282
+ <OfferingID>20001208</OfferingID>
283
+ <InstanceID>0</InstanceID>
284
+ <Owner>ibmcloud@cohesiveft.com</Owner>
285
+ <Name>sit-ruby-on-rails-361sUc</Name>
286
+ <Format>ext3</Format>
287
+ <Size>256</Size>
288
+ <State>4</State>
289
+ <ProductCodes />
290
+ <CreatedTime>2011-08-09T00:35:01.000Z</CreatedTime>
291
+ <StorageArea>
292
+ <ID></ID>
293
+ <Name></Name>
294
+ <Description></Description>
295
+ </StorageArea>
296
+ <IOPrice CountryCode="897">
297
+ <EffectiveDate>2011-08-12T00:00:00.000Z</EffectiveDate>
298
+ <CurrencyCode>USD</CurrencyCode>
299
+ <Rate>0.11</Rate>
300
+ <PricePerQuantity>1</PricePerQuantity>
301
+ <UnitOfMeasure>CNT</UnitOfMeasure>
302
+ </IOPrice>
303
+ </Volume>
304
+ <Volume>
305
+ <ID>17539</ID>
306
+ <Location>101</Location>
307
+ <OfferingID>20001208</OfferingID>
308
+ <InstanceID>0</InstanceID>
309
+ <Owner>ibmcloud@cohesiveft.com</Owner>
310
+ <Name>sit-mule-examples-75Nm3</Name>
311
+ <Format>ext3</Format>
312
+ <Size>256</Size>
313
+ <State>4</State>
314
+ <ProductCodes />
315
+ <CreatedTime>2011-08-09T15:57:47.000Z</CreatedTime>
316
+ <StorageArea>
317
+ <ID></ID>
318
+ <Name></Name>
319
+ <Description></Description>
320
+ </StorageArea>
321
+ <IOPrice CountryCode="897">
322
+ <EffectiveDate>2011-08-12T00:00:00.000Z</EffectiveDate>
323
+ <CurrencyCode>USD</CurrencyCode>
324
+ <Rate>0.11</Rate>
325
+ <PricePerQuantity>1</PricePerQuantity>
326
+ <UnitOfMeasure>CNT</UnitOfMeasure>
327
+ </IOPrice>
328
+ </Volume>
329
+ <Volume>
330
+ <ID>17735</ID>
331
+ <Location>101</Location>
332
+ <OfferingID>20001208</OfferingID>
333
+ <InstanceID>0</InstanceID>
334
+ <Owner>ibmcloud@cohesiveft.com</Owner>
335
+ <Name>sit-x-cloud-ibm-test-75Ph8</Name>
336
+ <Format>ext3</Format>
337
+ <Size>256</Size>
338
+ <State>4</State>
339
+ <ProductCodes />
340
+ <CreatedTime>2011-08-18T15:27:54.000Z</CreatedTime>
341
+ <StorageArea>
342
+ <ID></ID>
343
+ <Name></Name>
344
+ <Description></Description>
345
+ </StorageArea>
346
+ <IOPrice CountryCode="897">
347
+ <EffectiveDate>2011-08-12T00:00:00.000Z</EffectiveDate>
348
+ <CurrencyCode>USD</CurrencyCode>
349
+ <Rate>0.11</Rate>
350
+ <PricePerQuantity>1</PricePerQuantity>
351
+ <UnitOfMeasure>CNT</UnitOfMeasure>
352
+ </IOPrice>
353
+ </Volume>
354
+ <Volume>
355
+ <ID>21128</ID>
356
+ <Location>101</Location>
357
+ <OfferingID>20001208</OfferingID>
358
+ <InstanceID>0</InstanceID>
359
+ <Owner>ibmcloud@cohesiveft.com</Owner>
360
+ <Name>sit-my-excellent-image-75XQC</Name>
361
+ <Format>ext3</Format>
362
+ <Size>256</Size>
363
+ <State>4</State>
364
+ <ProductCodes />
365
+ <CreatedTime>2011-11-16T15:08:07.000Z</CreatedTime>
366
+ <StorageArea>
367
+ <ID></ID>
368
+ <Name></Name>
369
+ <Description></Description>
370
+ </StorageArea>
371
+ <IOPrice CountryCode="897">
372
+ <EffectiveDate>2011-08-12T00:00:00.000Z</EffectiveDate>
373
+ <CurrencyCode>USD</CurrencyCode>
374
+ <Rate>0.11</Rate>
375
+ <PricePerQuantity>1</PricePerQuantity>
376
+ <UnitOfMeasure>CNT</UnitOfMeasure>
377
+ </IOPrice>
378
+ </Volume>
379
+ </ns2:DescribeVolumesResponse>
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 2
8
- - 2
9
- version: 0.2.2
7
+ - 3
8
+ - 0
9
+ version: 0.3.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - yan
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-17 00:00:00 -07:00
18
+ date: 2011-11-21 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -28,18 +28,19 @@ extensions: []
28
28
 
29
29
  extra_rdoc_files:
30
30
  - LICENSE
31
- - README.rdoc
31
+ - README.md
32
32
  files:
33
33
  - .gitignore
34
34
  - CHANGELOG
35
35
  - LICENSE
36
- - README.rdoc
36
+ - README.md
37
37
  - Rakefile
38
38
  - VERSION
39
39
  - bin/cft_smartcloud
40
40
  - bin/smartcloud
41
41
  - cft_smartcloud.gemspec
42
42
  - lib/config/config.yml
43
+ - lib/curl_client.rb
43
44
  - lib/hash_fix.rb
44
45
  - lib/mime-types-1.16/History.txt
45
46
  - lib/mime-types-1.16/Install.txt
@@ -54,25 +55,81 @@ files:
54
55
  - lib/mime-types-1.16/test/test_mime_type.rb
55
56
  - lib/mime-types-1.16/test/test_mime_types.rb
56
57
  - lib/mock_smartcloud.rb
57
- - lib/rest-client-1.6.3/README.rdoc
58
- - lib/rest-client-1.6.3/Rakefile
59
- - lib/rest-client-1.6.3/VERSION
60
- - lib/rest-client-1.6.3/bin/restclient
61
- - lib/rest-client-1.6.3/history.md
62
- - lib/rest-client-1.6.3/lib/rest-client.rb
63
- - lib/rest-client-1.6.3/lib/rest_client.rb
64
- - lib/rest-client-1.6.3/lib/restclient.rb
65
- - lib/rest-client-1.6.3/lib/restclient/abstract_response.rb
66
- - lib/rest-client-1.6.3/lib/restclient/exceptions.rb
67
- - lib/rest-client-1.6.3/lib/restclient/net_http_ext.rb
68
- - lib/rest-client-1.6.3/lib/restclient/payload.rb
69
- - lib/rest-client-1.6.3/lib/restclient/raw_response.rb
70
- - lib/rest-client-1.6.3/lib/restclient/request.rb
71
- - lib/rest-client-1.6.3/lib/restclient/resource.rb
72
- - lib/rest-client-1.6.3/lib/restclient/response.rb
58
+ - lib/rest-client-1.6.6-master/.gitignore
59
+ - lib/rest-client-1.6.6-master/README.rdoc
60
+ - lib/rest-client-1.6.6-master/Rakefile
61
+ - lib/rest-client-1.6.6-master/VERSION
62
+ - lib/rest-client-1.6.6-master/bin/restclient
63
+ - lib/rest-client-1.6.6-master/history.md
64
+ - lib/rest-client-1.6.6-master/lib/rest-client.rb
65
+ - lib/rest-client-1.6.6-master/lib/rest_client.rb
66
+ - lib/rest-client-1.6.6-master/lib/restclient.rb
67
+ - lib/rest-client-1.6.6-master/lib/restclient/abstract_response.rb
68
+ - lib/rest-client-1.6.6-master/lib/restclient/exceptions.rb
69
+ - lib/rest-client-1.6.6-master/lib/restclient/net_http_ext.rb
70
+ - lib/rest-client-1.6.6-master/lib/restclient/payload.rb
71
+ - lib/rest-client-1.6.6-master/lib/restclient/raw_response.rb
72
+ - lib/rest-client-1.6.6-master/lib/restclient/request.rb
73
+ - lib/rest-client-1.6.6-master/lib/restclient/resource.rb
74
+ - lib/rest-client-1.6.6-master/lib/restclient/response.rb
75
+ - lib/rest-client-1.6.6-master/rest-client.gemspec
76
+ - lib/rest-client-1.6.6-master/spec/abstract_response_spec.rb
77
+ - lib/rest-client-1.6.6-master/spec/base.rb
78
+ - lib/rest-client-1.6.6-master/spec/exceptions_spec.rb
79
+ - lib/rest-client-1.6.6-master/spec/integration/certs/equifax.crt
80
+ - lib/rest-client-1.6.6-master/spec/integration/certs/verisign.crt
81
+ - lib/rest-client-1.6.6-master/spec/integration/request_spec.rb
82
+ - lib/rest-client-1.6.6-master/spec/integration_spec.rb
83
+ - lib/rest-client-1.6.6-master/spec/master_shake.jpg
84
+ - lib/rest-client-1.6.6-master/spec/payload_spec.rb
85
+ - lib/rest-client-1.6.6-master/spec/raw_response_spec.rb
86
+ - lib/rest-client-1.6.6-master/spec/request2_spec.rb
87
+ - lib/rest-client-1.6.6-master/spec/request_spec.rb
88
+ - lib/rest-client-1.6.6-master/spec/resource_spec.rb
89
+ - lib/rest-client-1.6.6-master/spec/response_spec.rb
90
+ - lib/rest-client-1.6.6-master/spec/restclient_spec.rb
73
91
  - lib/restclient_fix.rb
92
+ - lib/slop-2.3.1/.gemtest
93
+ - lib/slop-2.3.1/.gitignore
94
+ - lib/slop-2.3.1/.yardopts
95
+ - lib/slop-2.3.1/CHANGES.md
96
+ - lib/slop-2.3.1/LICENSE
97
+ - lib/slop-2.3.1/README.md
98
+ - lib/slop-2.3.1/Rakefile
99
+ - lib/slop-2.3.1/lib/slop.rb
100
+ - lib/slop-2.3.1/slop.gemspec
101
+ - lib/slop-2.3.1/test/commands_test.rb
102
+ - lib/slop-2.3.1/test/helper.rb
103
+ - lib/slop-2.3.1/test/option_test.rb
104
+ - lib/slop-2.3.1/test/slop_test.rb
74
105
  - lib/smartcloud.rb
75
106
  - lib/smartcloud_logger.rb
107
+ - lib/terminal-table-1.4.4/History.rdoc
108
+ - lib/terminal-table-1.4.4/Manifest
109
+ - lib/terminal-table-1.4.4/README.rdoc
110
+ - lib/terminal-table-1.4.4/Rakefile
111
+ - lib/terminal-table-1.4.4/Todo.rdoc
112
+ - lib/terminal-table-1.4.4/examples/examples.rb
113
+ - lib/terminal-table-1.4.4/lib/terminal-table.rb
114
+ - lib/terminal-table-1.4.4/lib/terminal-table/cell.rb
115
+ - lib/terminal-table-1.4.4/lib/terminal-table/core_ext.rb
116
+ - lib/terminal-table-1.4.4/lib/terminal-table/import.rb
117
+ - lib/terminal-table-1.4.4/lib/terminal-table/row.rb
118
+ - lib/terminal-table-1.4.4/lib/terminal-table/separator.rb
119
+ - lib/terminal-table-1.4.4/lib/terminal-table/style.rb
120
+ - lib/terminal-table-1.4.4/lib/terminal-table/table.rb
121
+ - lib/terminal-table-1.4.4/lib/terminal-table/table_helper.rb
122
+ - lib/terminal-table-1.4.4/lib/terminal-table/version.rb
123
+ - lib/terminal-table-1.4.4/spec/cell_spec.rb
124
+ - lib/terminal-table-1.4.4/spec/core_ext_spec.rb
125
+ - lib/terminal-table-1.4.4/spec/import_spec.rb
126
+ - lib/terminal-table-1.4.4/spec/spec.opts
127
+ - lib/terminal-table-1.4.4/spec/spec_helper.rb
128
+ - lib/terminal-table-1.4.4/spec/table_spec.rb
129
+ - lib/terminal-table-1.4.4/tasks/docs.rake
130
+ - lib/terminal-table-1.4.4/tasks/gemspec.rake
131
+ - lib/terminal-table-1.4.4/tasks/spec.rake
132
+ - lib/terminal-table-1.4.4/terminal-table.gemspec
76
133
  - lib/xml-simple-1.0.12/lib/xmlsimple.rb
77
134
  - rdoc/classes/ConfigTable.html
78
135
  - rdoc/classes/ConfigTable/BoolItem.html
@@ -155,6 +212,13 @@ files:
155
212
  - rdoc/fr_method_index.html
156
213
  - rdoc/index.html
157
214
  - rdoc/rdoc-style.css
215
+ - responses/addresses
216
+ - responses/addresses.blank
217
+ - responses/instances
218
+ - responses/keys
219
+ - responses/locations
220
+ - responses/offerings_image
221
+ - responses/storage
158
222
  - script/console
159
223
  - test/helper.rb
160
224
  has_rdoc: true
data/README.rdoc DELETED
@@ -1,75 +0,0 @@
1
- = smartcloud
2
-
3
- Provides support for interacting with IBM SmartCloud API and CLI tools
4
-
5
- == installation
6
-
7
- from rubygems.org:
8
-
9
- gem install cft_smartcloud
10
-
11
- locally:
12
-
13
- rake build
14
- gem install pkg/[name of generated gem]
15
-
16
- == setup
17
-
18
- Please set up SMARTCLOUD_USERNAME and SMARTCLOUD_PASSWORD in your .bash_profile
19
-
20
- export SMARTCLOUD_USERNAME=[your username]
21
- export SMARTCLOUD_PASSWORD=[your password]
22
-
23
- == screencast
24
-
25
- http://www.youtube.com/cohesiveft#p/u/0/-WdSHP2iwDM
26
-
27
- == using the console
28
-
29
- script/console
30
- >> @smartcloud.display_instances
31
- >> @smartcloud.display_volumes(:Location => 101)
32
- >> @smartcloud.display_instances(:Location => 82, :Name => "namematch")
33
- >> @smartcloud.poll_for_volume_state(12345, :unmounted)
34
-
35
- The console predefines the @smartcloud instance variable that is set up
36
- from the environment variables SMARTCLOUD_USERNAME and SMARTCLOUD_PASSWORD
37
- automatically (it's created at the bottom of smartcloud.rb)
38
-
39
- == using the commandline helper
40
-
41
- smartcloud [method of smartcloud.rb]
42
-
43
- to see a list of methods:
44
-
45
- smartcloud help
46
-
47
- examples:
48
-
49
- smartcloud display_volumes
50
- smartcloud display_instances
51
- smartcloud "describe_instance('12345')"
52
- smartcloud "display_instances(:Location => 82, :Name => 'match_this')"
53
-
54
- smartcloud delete_unused_keys # this one will prompt for every key
55
-
56
- The 'display_*' methods are intended to generate pretty human readable displays, while the describe methods
57
- will return pretty-formatted hashes, or singular values.
58
-
59
- smartcloud display_volumes
60
-
61
- == get a list of all available methods
62
-
63
- console:
64
-
65
- >> @smartcloud.help
66
-
67
- commandline
68
-
69
- > smartcloud help
70
-
71
- These won't tell you the arguments, you have to look at smartcloud.rb for the args.
72
-
73
- == Copyright
74
-
75
- Copyright (c) 2011 CohesiveFT. See LICENSE for details.
@@ -1 +0,0 @@
1
- 1.6.3
@@ -1,21 +0,0 @@
1
- #
2
- # Replace the request method in Net::HTTP to sniff the body type
3
- # and set the stream if appropriate
4
- #
5
- # Taken from:
6
- # http://www.missiondata.com/blog/ruby/29/streaming-data-to-s3-with-ruby/
7
-
8
- module Net
9
- class HTTP
10
- alias __request__ request
11
-
12
- def request(req, body=nil, &block)
13
- if body != nil && body.respond_to?(:read)
14
- req.body_stream = body
15
- return __request__(req, nil, &block)
16
- else
17
- return __request__(req, body, &block)
18
- end
19
- end
20
- end
21
- end