fog-profitbricks 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +24 -0
  3. data/.rubocop.yml +21 -0
  4. data/.ruby-gemset +1 -0
  5. data/.ruby-version +1 -0
  6. data/.travis.yml +25 -0
  7. data/CONTRIBUTING.md +18 -0
  8. data/CONTRIBUTORS.md +2 -0
  9. data/Gemfile +4 -0
  10. data/LICENSE.md +20 -0
  11. data/README.md +29 -0
  12. data/Rakefile +21 -0
  13. data/examples/pb_demo.rb +53 -0
  14. data/fog-profitbricks.gemspec +31 -0
  15. data/gemfiles/Gemfile.1.8.7 +7 -0
  16. data/gemfiles/Gemfile.1.9.2+ +6 -0
  17. data/lib/fog/bin/profitbricks.rb +29 -0
  18. data/lib/fog/profitbricks.rb +13 -0
  19. data/lib/fog/profitbricks/compute.rb +215 -0
  20. data/lib/fog/profitbricks/core.rb +18 -0
  21. data/lib/fog/profitbricks/models/compute/datacenter.rb +59 -0
  22. data/lib/fog/profitbricks/models/compute/datacenters.rb +24 -0
  23. data/lib/fog/profitbricks/models/compute/flavor.rb +27 -0
  24. data/lib/fog/profitbricks/models/compute/flavors.rb +24 -0
  25. data/lib/fog/profitbricks/models/compute/image.rb +30 -0
  26. data/lib/fog/profitbricks/models/compute/images.rb +23 -0
  27. data/lib/fog/profitbricks/models/compute/interface.rb +64 -0
  28. data/lib/fog/profitbricks/models/compute/interfaces.rb +24 -0
  29. data/lib/fog/profitbricks/models/compute/region.rb +15 -0
  30. data/lib/fog/profitbricks/models/compute/regions.rb +24 -0
  31. data/lib/fog/profitbricks/models/compute/server.rb +107 -0
  32. data/lib/fog/profitbricks/models/compute/servers.rb +23 -0
  33. data/lib/fog/profitbricks/models/compute/volume.rb +74 -0
  34. data/lib/fog/profitbricks/models/compute/volumes.rb +24 -0
  35. data/lib/fog/profitbricks/parsers/base.rb +49 -0
  36. data/lib/fog/profitbricks/parsers/compute/clear_data_center.rb +22 -0
  37. data/lib/fog/profitbricks/parsers/compute/connect_storage_to_server.rb +22 -0
  38. data/lib/fog/profitbricks/parsers/compute/create_data_center.rb +22 -0
  39. data/lib/fog/profitbricks/parsers/compute/create_nic.rb +22 -0
  40. data/lib/fog/profitbricks/parsers/compute/create_server.rb +22 -0
  41. data/lib/fog/profitbricks/parsers/compute/create_storage.rb +22 -0
  42. data/lib/fog/profitbricks/parsers/compute/delete_data_center.rb +20 -0
  43. data/lib/fog/profitbricks/parsers/compute/delete_nic.rb +22 -0
  44. data/lib/fog/profitbricks/parsers/compute/delete_server.rb +22 -0
  45. data/lib/fog/profitbricks/parsers/compute/delete_storage.rb +22 -0
  46. data/lib/fog/profitbricks/parsers/compute/disconnect_storage_from_server.rb +22 -0
  47. data/lib/fog/profitbricks/parsers/compute/get_all_data_centers.rb +26 -0
  48. data/lib/fog/profitbricks/parsers/compute/get_all_images.rb +30 -0
  49. data/lib/fog/profitbricks/parsers/compute/get_all_nic.rb +30 -0
  50. data/lib/fog/profitbricks/parsers/compute/get_all_servers.rb +56 -0
  51. data/lib/fog/profitbricks/parsers/compute/get_all_storages.rb +33 -0
  52. data/lib/fog/profitbricks/parsers/compute/get_data_center.rb +23 -0
  53. data/lib/fog/profitbricks/parsers/compute/get_data_center_state.rb +20 -0
  54. data/lib/fog/profitbricks/parsers/compute/get_image.rb +26 -0
  55. data/lib/fog/profitbricks/parsers/compute/get_nic.rb +27 -0
  56. data/lib/fog/profitbricks/parsers/compute/get_server.rb +55 -0
  57. data/lib/fog/profitbricks/parsers/compute/get_storage.rb +30 -0
  58. data/lib/fog/profitbricks/parsers/compute/reset_server.rb +20 -0
  59. data/lib/fog/profitbricks/parsers/compute/set_internet_access.rb +22 -0
  60. data/lib/fog/profitbricks/parsers/compute/update_data_center.rb +22 -0
  61. data/lib/fog/profitbricks/parsers/compute/update_nic.rb +22 -0
  62. data/lib/fog/profitbricks/parsers/compute/update_server.rb +22 -0
  63. data/lib/fog/profitbricks/parsers/compute/update_storage.rb +22 -0
  64. data/lib/fog/profitbricks/requests/compute/clear_data_center.rb +53 -0
  65. data/lib/fog/profitbricks/requests/compute/connect_storage_to_server.rb +85 -0
  66. data/lib/fog/profitbricks/requests/compute/create_data_center.rb +64 -0
  67. data/lib/fog/profitbricks/requests/compute/create_flavor.rb +40 -0
  68. data/lib/fog/profitbricks/requests/compute/create_nic.rb +81 -0
  69. data/lib/fog/profitbricks/requests/compute/create_server.rb +107 -0
  70. data/lib/fog/profitbricks/requests/compute/create_storage.rb +98 -0
  71. data/lib/fog/profitbricks/requests/compute/delete_data_center.rb +62 -0
  72. data/lib/fog/profitbricks/requests/compute/delete_nic.rb +66 -0
  73. data/lib/fog/profitbricks/requests/compute/delete_server.rb +66 -0
  74. data/lib/fog/profitbricks/requests/compute/delete_storage.rb +66 -0
  75. data/lib/fog/profitbricks/requests/compute/disconnect_storage_from_server.rb +78 -0
  76. data/lib/fog/profitbricks/requests/compute/get_all_data_centers.rb +32 -0
  77. data/lib/fog/profitbricks/requests/compute/get_all_flavors.rb +77 -0
  78. data/lib/fog/profitbricks/requests/compute/get_all_images.rb +67 -0
  79. data/lib/fog/profitbricks/requests/compute/get_all_locations.rb +44 -0
  80. data/lib/fog/profitbricks/requests/compute/get_all_nic.rb +55 -0
  81. data/lib/fog/profitbricks/requests/compute/get_all_servers.rb +58 -0
  82. data/lib/fog/profitbricks/requests/compute/get_all_storages.rb +58 -0
  83. data/lib/fog/profitbricks/requests/compute/get_data_center.rb +40 -0
  84. data/lib/fog/profitbricks/requests/compute/get_data_center_state.rb +43 -0
  85. data/lib/fog/profitbricks/requests/compute/get_flavor.rb +82 -0
  86. data/lib/fog/profitbricks/requests/compute/get_image.rb +71 -0
  87. data/lib/fog/profitbricks/requests/compute/get_location.rb +48 -0
  88. data/lib/fog/profitbricks/requests/compute/get_nic.rb +65 -0
  89. data/lib/fog/profitbricks/requests/compute/get_server.rb +100 -0
  90. data/lib/fog/profitbricks/requests/compute/get_storage.rb +65 -0
  91. data/lib/fog/profitbricks/requests/compute/reset_server.rb +51 -0
  92. data/lib/fog/profitbricks/requests/compute/set_internet_access.rb +61 -0
  93. data/lib/fog/profitbricks/requests/compute/start_server.rb +59 -0
  94. data/lib/fog/profitbricks/requests/compute/stop_server.rb +59 -0
  95. data/lib/fog/profitbricks/requests/compute/update_data_center.rb +55 -0
  96. data/lib/fog/profitbricks/requests/compute/update_nic.rb +76 -0
  97. data/lib/fog/profitbricks/requests/compute/update_server.rb +81 -0
  98. data/lib/fog/profitbricks/requests/compute/update_storage.rb +75 -0
  99. data/lib/fog/profitbricks/version.rb +5 -0
  100. data/spec/minitest_helper.rb +33 -0
  101. data/tests/helper.rb +19 -0
  102. data/tests/helpers/formats_helper.rb +23 -0
  103. data/tests/helpers/mock_helper.rb +8 -0
  104. data/tests/profitbricks/requests/compute/flavor_tests.rb +43 -0
  105. data/tests/profitbricks/requests/compute/image_tests.rb +50 -0
  106. data/tests/profitbricks/requests/compute/interface_tests.rb +101 -0
  107. data/tests/profitbricks/requests/compute/location_tests.rb +33 -0
  108. data/tests/profitbricks/requests/compute/server_tests.rb +246 -0
  109. metadata +293 -0
metadata ADDED
@@ -0,0 +1,293 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fog-profitbricks
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Ethan Devenport
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-10-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: fog-core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: fog-xml
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: nokogiri
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: shindo
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: turn
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: pry
113
+ requirement: !ruby/object:Gem::Requirement
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
+ requirements:
122
+ - - '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: coveralls
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - '>='
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - '>='
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ description: Module for the 'fog' gem to support ProfitBricks.
154
+ email:
155
+ - ethand@stackpointcloud.com
156
+ executables: []
157
+ extensions: []
158
+ extra_rdoc_files: []
159
+ files:
160
+ - .gitignore
161
+ - .rubocop.yml
162
+ - .ruby-gemset
163
+ - .ruby-version
164
+ - .travis.yml
165
+ - CONTRIBUTING.md
166
+ - CONTRIBUTORS.md
167
+ - Gemfile
168
+ - LICENSE.md
169
+ - README.md
170
+ - Rakefile
171
+ - examples/pb_demo.rb
172
+ - fog-profitbricks.gemspec
173
+ - gemfiles/Gemfile.1.8.7
174
+ - gemfiles/Gemfile.1.9.2+
175
+ - lib/fog/bin/profitbricks.rb
176
+ - lib/fog/profitbricks.rb
177
+ - lib/fog/profitbricks/compute.rb
178
+ - lib/fog/profitbricks/core.rb
179
+ - lib/fog/profitbricks/models/compute/datacenter.rb
180
+ - lib/fog/profitbricks/models/compute/datacenters.rb
181
+ - lib/fog/profitbricks/models/compute/flavor.rb
182
+ - lib/fog/profitbricks/models/compute/flavors.rb
183
+ - lib/fog/profitbricks/models/compute/image.rb
184
+ - lib/fog/profitbricks/models/compute/images.rb
185
+ - lib/fog/profitbricks/models/compute/interface.rb
186
+ - lib/fog/profitbricks/models/compute/interfaces.rb
187
+ - lib/fog/profitbricks/models/compute/region.rb
188
+ - lib/fog/profitbricks/models/compute/regions.rb
189
+ - lib/fog/profitbricks/models/compute/server.rb
190
+ - lib/fog/profitbricks/models/compute/servers.rb
191
+ - lib/fog/profitbricks/models/compute/volume.rb
192
+ - lib/fog/profitbricks/models/compute/volumes.rb
193
+ - lib/fog/profitbricks/parsers/base.rb
194
+ - lib/fog/profitbricks/parsers/compute/clear_data_center.rb
195
+ - lib/fog/profitbricks/parsers/compute/connect_storage_to_server.rb
196
+ - lib/fog/profitbricks/parsers/compute/create_data_center.rb
197
+ - lib/fog/profitbricks/parsers/compute/create_nic.rb
198
+ - lib/fog/profitbricks/parsers/compute/create_server.rb
199
+ - lib/fog/profitbricks/parsers/compute/create_storage.rb
200
+ - lib/fog/profitbricks/parsers/compute/delete_data_center.rb
201
+ - lib/fog/profitbricks/parsers/compute/delete_nic.rb
202
+ - lib/fog/profitbricks/parsers/compute/delete_server.rb
203
+ - lib/fog/profitbricks/parsers/compute/delete_storage.rb
204
+ - lib/fog/profitbricks/parsers/compute/disconnect_storage_from_server.rb
205
+ - lib/fog/profitbricks/parsers/compute/get_all_data_centers.rb
206
+ - lib/fog/profitbricks/parsers/compute/get_all_images.rb
207
+ - lib/fog/profitbricks/parsers/compute/get_all_nic.rb
208
+ - lib/fog/profitbricks/parsers/compute/get_all_servers.rb
209
+ - lib/fog/profitbricks/parsers/compute/get_all_storages.rb
210
+ - lib/fog/profitbricks/parsers/compute/get_data_center.rb
211
+ - lib/fog/profitbricks/parsers/compute/get_data_center_state.rb
212
+ - lib/fog/profitbricks/parsers/compute/get_image.rb
213
+ - lib/fog/profitbricks/parsers/compute/get_nic.rb
214
+ - lib/fog/profitbricks/parsers/compute/get_server.rb
215
+ - lib/fog/profitbricks/parsers/compute/get_storage.rb
216
+ - lib/fog/profitbricks/parsers/compute/reset_server.rb
217
+ - lib/fog/profitbricks/parsers/compute/set_internet_access.rb
218
+ - lib/fog/profitbricks/parsers/compute/update_data_center.rb
219
+ - lib/fog/profitbricks/parsers/compute/update_nic.rb
220
+ - lib/fog/profitbricks/parsers/compute/update_server.rb
221
+ - lib/fog/profitbricks/parsers/compute/update_storage.rb
222
+ - lib/fog/profitbricks/requests/compute/clear_data_center.rb
223
+ - lib/fog/profitbricks/requests/compute/connect_storage_to_server.rb
224
+ - lib/fog/profitbricks/requests/compute/create_data_center.rb
225
+ - lib/fog/profitbricks/requests/compute/create_flavor.rb
226
+ - lib/fog/profitbricks/requests/compute/create_nic.rb
227
+ - lib/fog/profitbricks/requests/compute/create_server.rb
228
+ - lib/fog/profitbricks/requests/compute/create_storage.rb
229
+ - lib/fog/profitbricks/requests/compute/delete_data_center.rb
230
+ - lib/fog/profitbricks/requests/compute/delete_nic.rb
231
+ - lib/fog/profitbricks/requests/compute/delete_server.rb
232
+ - lib/fog/profitbricks/requests/compute/delete_storage.rb
233
+ - lib/fog/profitbricks/requests/compute/disconnect_storage_from_server.rb
234
+ - lib/fog/profitbricks/requests/compute/get_all_data_centers.rb
235
+ - lib/fog/profitbricks/requests/compute/get_all_flavors.rb
236
+ - lib/fog/profitbricks/requests/compute/get_all_images.rb
237
+ - lib/fog/profitbricks/requests/compute/get_all_locations.rb
238
+ - lib/fog/profitbricks/requests/compute/get_all_nic.rb
239
+ - lib/fog/profitbricks/requests/compute/get_all_servers.rb
240
+ - lib/fog/profitbricks/requests/compute/get_all_storages.rb
241
+ - lib/fog/profitbricks/requests/compute/get_data_center.rb
242
+ - lib/fog/profitbricks/requests/compute/get_data_center_state.rb
243
+ - lib/fog/profitbricks/requests/compute/get_flavor.rb
244
+ - lib/fog/profitbricks/requests/compute/get_image.rb
245
+ - lib/fog/profitbricks/requests/compute/get_location.rb
246
+ - lib/fog/profitbricks/requests/compute/get_nic.rb
247
+ - lib/fog/profitbricks/requests/compute/get_server.rb
248
+ - lib/fog/profitbricks/requests/compute/get_storage.rb
249
+ - lib/fog/profitbricks/requests/compute/reset_server.rb
250
+ - lib/fog/profitbricks/requests/compute/set_internet_access.rb
251
+ - lib/fog/profitbricks/requests/compute/start_server.rb
252
+ - lib/fog/profitbricks/requests/compute/stop_server.rb
253
+ - lib/fog/profitbricks/requests/compute/update_data_center.rb
254
+ - lib/fog/profitbricks/requests/compute/update_nic.rb
255
+ - lib/fog/profitbricks/requests/compute/update_server.rb
256
+ - lib/fog/profitbricks/requests/compute/update_storage.rb
257
+ - lib/fog/profitbricks/version.rb
258
+ - spec/minitest_helper.rb
259
+ - tests/helper.rb
260
+ - tests/helpers/formats_helper.rb
261
+ - tests/helpers/mock_helper.rb
262
+ - tests/profitbricks/requests/compute/flavor_tests.rb
263
+ - tests/profitbricks/requests/compute/image_tests.rb
264
+ - tests/profitbricks/requests/compute/interface_tests.rb
265
+ - tests/profitbricks/requests/compute/location_tests.rb
266
+ - tests/profitbricks/requests/compute/server_tests.rb
267
+ homepage: https://github.com/fog/fog-profitbricks
268
+ licenses:
269
+ - MIT
270
+ metadata: {}
271
+ post_install_message:
272
+ rdoc_options: []
273
+ require_paths:
274
+ - lib
275
+ required_ruby_version: !ruby/object:Gem::Requirement
276
+ requirements:
277
+ - - '>='
278
+ - !ruby/object:Gem::Version
279
+ version: '0'
280
+ required_rubygems_version: !ruby/object:Gem::Requirement
281
+ requirements:
282
+ - - '>='
283
+ - !ruby/object:Gem::Version
284
+ version: '0'
285
+ requirements: []
286
+ rubyforge_project:
287
+ rubygems_version: 2.4.2
288
+ signing_key:
289
+ specification_version: 4
290
+ summary: Module for the 'fog' gem to support ProfitBricks.
291
+ test_files:
292
+ - spec/minitest_helper.rb
293
+ has_rdoc: