deltacloud-core 0.1.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. data/DISCLAIMER +8 -0
  2. data/{COPYING → LICENSE} +0 -0
  3. data/NOTICE +13 -0
  4. data/Rakefile +50 -51
  5. data/bin/deltacloudd +8 -1
  6. data/config.ru +0 -2
  7. data/config/drivers.yaml +48 -0
  8. data/deltacloud-core.gemspec +75 -0
  9. data/deltacloud.rb +3 -2
  10. data/lib/deltacloud/backend_capability.rb +15 -3
  11. data/lib/deltacloud/base_driver.rb +0 -2
  12. data/lib/deltacloud/base_driver/base_driver.rb +85 -89
  13. data/lib/deltacloud/base_driver/features.rb +61 -7
  14. data/lib/deltacloud/base_driver/mock_driver.rb +42 -43
  15. data/lib/deltacloud/core_ext.rb +18 -0
  16. data/lib/deltacloud/core_ext/integer.rb +31 -0
  17. data/lib/deltacloud/core_ext/string.rb +50 -0
  18. data/lib/deltacloud/drivers/azure/azure_driver.rb +71 -22
  19. data/lib/deltacloud/drivers/ec2/ec2_driver.rb +641 -584
  20. data/lib/deltacloud/drivers/ec2/ec2_mock_driver.rb +0 -2
  21. data/lib/deltacloud/drivers/eucalyptus/eucalyptus_driver.rb +167 -0
  22. data/lib/deltacloud/drivers/gogrid/gogrid_client.rb +39 -1
  23. data/lib/deltacloud/drivers/gogrid/gogrid_driver.rb +41 -25
  24. data/lib/deltacloud/drivers/mock/data/buckets/blobs/blob1.yml +6 -3
  25. data/lib/deltacloud/drivers/mock/data/buckets/blobs/blob2.yml +6 -3
  26. data/lib/deltacloud/drivers/mock/data/buckets/blobs/blob3.yml +4 -2
  27. data/lib/deltacloud/drivers/mock/data/buckets/blobs/blob4.yml +5 -2
  28. data/lib/deltacloud/drivers/mock/data/buckets/blobs/blob5.yml +4 -2
  29. data/lib/deltacloud/drivers/mock/data/instances/inst0.yml +1 -0
  30. data/lib/deltacloud/drivers/mock/data/instances/inst1.yml +1 -0
  31. data/lib/deltacloud/drivers/mock/data/instances/inst2.yml +1 -0
  32. data/lib/deltacloud/drivers/mock/data/storage_volumes/vol1.yml +1 -0
  33. data/lib/deltacloud/drivers/mock/data/storage_volumes/vol2.yml +1 -0
  34. data/lib/deltacloud/drivers/mock/data/storage_volumes/vol3.yml +1 -0
  35. data/lib/deltacloud/drivers/mock/mock_driver.rb +138 -30
  36. data/lib/deltacloud/drivers/opennebula/cloud_client.rb +13 -15
  37. data/lib/deltacloud/drivers/opennebula/occi_client.rb +13 -15
  38. data/lib/deltacloud/drivers/opennebula/opennebula_driver.rb +13 -15
  39. data/lib/deltacloud/drivers/rackspace/rackspace_driver.rb +224 -113
  40. data/lib/deltacloud/drivers/rhevm/rhevm_client.rb +332 -0
  41. data/lib/deltacloud/drivers/rhevm/rhevm_driver.rb +221 -170
  42. data/lib/deltacloud/drivers/rimuhosting/rimuhosting_driver.rb +0 -1
  43. data/lib/deltacloud/drivers/sbc/sbc_client.rb +247 -0
  44. data/lib/deltacloud/drivers/sbc/sbc_driver.rb +297 -0
  45. data/lib/deltacloud/drivers/terremark/terremark_driver.rb +0 -2
  46. data/lib/deltacloud/hardware_profile.rb +1 -3
  47. data/lib/deltacloud/helpers.rb +0 -2
  48. data/lib/deltacloud/helpers/application_helper.rb +86 -12
  49. data/lib/deltacloud/helpers/blob_stream.rb +19 -2
  50. data/lib/deltacloud/helpers/conversion_helper.rb +0 -2
  51. data/lib/deltacloud/helpers/hardware_profiles_helper.rb +0 -2
  52. data/lib/deltacloud/method_serializer.rb +0 -2
  53. data/lib/deltacloud/models/base_model.rb +0 -2
  54. data/lib/deltacloud/models/blob.rb +1 -2
  55. data/lib/deltacloud/models/bucket.rb +0 -2
  56. data/lib/deltacloud/models/image.rb +0 -2
  57. data/lib/deltacloud/models/instance.rb +19 -2
  58. data/lib/deltacloud/models/instance_profile.rb +4 -2
  59. data/lib/deltacloud/models/key.rb +0 -2
  60. data/lib/deltacloud/models/load_balancer.rb +0 -2
  61. data/lib/deltacloud/models/realm.rb +0 -2
  62. data/lib/deltacloud/models/storage_snapshot.rb +0 -2
  63. data/lib/deltacloud/models/storage_volume.rb +4 -2
  64. data/lib/deltacloud/runner.rb +132 -0
  65. data/lib/deltacloud/state_machine.rb +0 -2
  66. data/lib/deltacloud/validation.rb +9 -7
  67. data/lib/drivers.rb +36 -48
  68. data/lib/sinatra/accept_media_types.rb +26 -0
  69. data/lib/sinatra/lazy_auth.rb +16 -0
  70. data/lib/sinatra/rabbit.rb +112 -54
  71. data/lib/sinatra/rack_driver_select.rb +50 -16
  72. data/lib/sinatra/rack_etag.rb +79 -0
  73. data/lib/sinatra/rack_matrix_params.rb +84 -0
  74. data/lib/sinatra/rack_runtime.rb +47 -0
  75. data/lib/sinatra/static_assets.rb +16 -0
  76. data/lib/sinatra/url_for.rb +31 -4
  77. data/public/favicon.ico +0 -0
  78. data/public/images/bread-bg.png +0 -0
  79. data/public/images/error.png +0 -0
  80. data/public/images/pending.png +0 -0
  81. data/public/images/running.png +0 -0
  82. data/public/images/stopped.png +0 -0
  83. data/public/javascripts/application.js +35 -0
  84. data/public/stylesheets/compiled/application.css +59 -5
  85. data/public/stylesheets/compiled/screen.css +1 -1
  86. data/server.rb +293 -29
  87. data/support/fedora/deltacloud-core +78 -0
  88. data/support/fedora/deltacloud-core.spec +143 -0
  89. data/support/fedora/deltacloudd +78 -18
  90. data/support/fedora/rubygem-deltacloud-core.spec +76 -40
  91. data/tests/common.rb +172 -0
  92. data/tests/drivers/mock/api_test.rb +133 -0
  93. data/tests/drivers/mock/hardware_profiles_test.rb +134 -0
  94. data/tests/drivers/mock/images_test.rb +126 -0
  95. data/tests/drivers/mock/instance_states_test.rb +71 -0
  96. data/tests/drivers/mock/instances_test.rb +236 -0
  97. data/tests/drivers/mock/realms_test.rb +93 -0
  98. data/tests/drivers/mock/setup.rb +3 -0
  99. data/tests/drivers/mock/url_for_test.rb +67 -0
  100. data/tests/drivers/rackspace/api_test.rb +41 -0
  101. data/tests/drivers/rackspace/hardware_profiles_test.rb +53 -0
  102. data/tests/drivers/rackspace/images_test.rb +40 -0
  103. data/tests/drivers/rackspace/instances_test.rb +161 -0
  104. data/tests/drivers/rackspace/realms_test.rb +36 -0
  105. data/tests/drivers/rackspace/setup.rb +14 -0
  106. data/tests/drivers/rhevm/api_test.rb +39 -0
  107. data/tests/drivers/rhevm/hardware_profiles_test.rb +53 -0
  108. data/tests/drivers/rhevm/images_test.rb +42 -0
  109. data/tests/drivers/rhevm/instances_test.rb +179 -0
  110. data/tests/drivers/rhevm/realms_test.rb +35 -0
  111. data/tests/drivers/rhevm/setup.rb +14 -0
  112. data/tests/rabbit_test.rb +52 -0
  113. data/views/api/show.html.haml +2 -5
  114. data/views/blobs/new.html.haml +17 -1
  115. data/views/blobs/show.html.haml +6 -0
  116. data/views/blobs/show.xml.haml +5 -1
  117. data/views/buckets/index.html.haml +1 -12
  118. data/views/buckets/index.xml.haml +3 -5
  119. data/views/docs/operation.html.haml +23 -11
  120. data/views/drivers/index.html.haml +15 -0
  121. data/views/drivers/index.xml.haml +7 -0
  122. data/views/drivers/show.html.haml +20 -0
  123. data/views/drivers/show.xml.haml +7 -0
  124. data/views/error.html.haml +31 -0
  125. data/views/errors/auth_exception.xml.haml +2 -1
  126. data/views/errors/backend_capability_failure.xml.haml +2 -1
  127. data/views/errors/backend_error.html.haml +3 -0
  128. data/views/errors/backend_error.xml.haml +2 -2
  129. data/views/errors/validation_failure.xml.haml +3 -2
  130. data/views/images/index.html.haml +1 -6
  131. data/views/images/index.xml.haml +2 -0
  132. data/views/images/new.html.haml +14 -0
  133. data/views/images/show.xml.haml +2 -0
  134. data/views/instances/index.html.haml +8 -6
  135. data/views/instances/index.xml.haml +4 -0
  136. data/views/instances/new.html.haml +40 -11
  137. data/views/instances/run.html.haml +9 -0
  138. data/views/instances/run.xml.haml +7 -0
  139. data/views/instances/run_command.html.haml +16 -0
  140. data/views/instances/show.html.haml +14 -0
  141. data/views/instances/show.xml.haml +12 -4
  142. data/views/layout.html.haml +7 -2
  143. data/views/load_balancers/index.html.haml +1 -1
  144. data/views/load_balancers/new.html.haml +2 -2
  145. data/views/load_balancers/show.html.haml +1 -1
  146. data/views/storage_snapshots/index.html.haml +3 -0
  147. data/views/storage_snapshots/new.html.haml +9 -0
  148. data/views/storage_volumes/attach.html.haml +20 -0
  149. data/views/storage_volumes/index.html.haml +16 -1
  150. data/views/storage_volumes/index.xml.haml +1 -10
  151. data/views/storage_volumes/new.html.haml +17 -0
  152. data/views/storage_volumes/show.html.haml +8 -0
  153. data/views/storage_volumes/show.xml.haml +25 -3
  154. metadata +197 -127
  155. data/lib/deltacloud/drivers/rackspace/rackspace_client.rb +0 -130
  156. data/parse.rb +0 -7
  157. data/test.rb +0 -3
  158. data/views/api/drivers.xml.haml +0 -6
@@ -0,0 +1,9 @@
1
+ %h1 Create new storage volume snapshot
2
+
3
+ %form{ :action => '/api/storage_snapshots', :method => :post }
4
+ %p
5
+ %label
6
+ Volume ID:
7
+ %input{ :name => 'volume_id', :size => 30, :value => params[:volume_id] }
8
+ %p
9
+ %input{ :type => :submit, :name => "commit", :value => "create" }/
@@ -0,0 +1,20 @@
1
+ %h1 Attach storage volume
2
+
3
+ %form{ :action => attach_storage_volume_url(params[:id]), :method => :post }
4
+ %p
5
+ %label
6
+ Instance ID:
7
+ - if @instances.empty?
8
+ %select
9
+ %option There are no instances
10
+ - else
11
+ %select{ :name => 'instance_id' }
12
+ - @instances.each do |i|
13
+ %option{ :value => "#{i.id}"} #{i.name}
14
+ %p
15
+ %label
16
+ Device name:
17
+ %input{ :name => "device", :size => 10, :value => "/dev/sdc"}
18
+ %p
19
+ %input{ :type => :hidden, :name => :id, :value => params[:id]}
20
+ %input{ :type => :submit, :name => "commit", :value => "create" }/
@@ -5,8 +5,10 @@
5
5
  %tr
6
6
  %th ID
7
7
  %th Created
8
+ %th Realm
8
9
  %th Capacity
9
10
  %th Status
11
+ %th Actions
10
12
  %tbody
11
13
  - @storage_volumes.each do |volume|
12
14
  %tr
@@ -14,8 +16,21 @@
14
16
  = link_to volume.id, storage_volume_url( volume.id )
15
17
  %td
16
18
  = volume.created
19
+ %td
20
+ = volume.realm_id
17
21
  %td
18
22
  = "#{volume.capacity} GB"
19
23
  %td
20
24
  = "#{volume.state}"
21
-
25
+ %td
26
+ - if ["AVAILABLE", "IN-USE"].include?(volume.state)
27
+ =link_to_action "Snaphot", url_for("/api/storage_snapshots/new?volume_id=#{volume.id}"), :get
28
+ - unless volume.instance_id
29
+ =link_to_action "Delete", destroy_storage_volume_url(volume.id), :delete
30
+ =link_to_action "Attach", url_for("/api/storage_volumes/attach?id=#{volume.id}"), :get
31
+ - if volume.instance_id
32
+ =link_to_action "Detach", detach_storage_volume_url(volume.id), :post
33
+ %tfoot
34
+ %tr
35
+ %td{:colspan => 6}
36
+ %a{ :href => url_for("/api/storage_volumes/new")} Create volume
@@ -1,13 +1,4 @@
1
1
  !!!XML
2
2
  %storage_volumes
3
3
  - @elements.each do |volume|
4
- %storage_volume{ :href => storage_volume_url(volume.id), :id => volume.id }
5
- %created<
6
- =volume.created
7
- %capacity{ :unit => "GB" }<
8
- = volume.capacity
9
- - unless volume.instance_id.nil?
10
- %mount
11
- %instance{:href => instance_url(volume.instance_id), :id => volume.instance_id}
12
- - unless volume.device.nil?
13
- %device{ :name => volume.device }
4
+ = haml :'storage_volumes/show', :locals => { :@storage_volume => volume, :partial => true }
@@ -0,0 +1,17 @@
1
+ %h1 Create new storage volume
2
+
3
+ %form{ :action => '/api/storage_volumes', :method => :post }
4
+ %p
5
+ %label
6
+ Snapshot ID:
7
+ %input{ :name => 'snapshot_id', :size => 30 } (optional)
8
+ %p
9
+ %label
10
+ Capacity (in GB):
11
+ %input{ :name => "capacity", :size => 3, :value => "1"}
12
+ %p
13
+ %label
14
+ Realm ID:
15
+ %input{ :name => "realm_id", :size => 10, :value => driver.realms(credentials).first.id}
16
+ %p
17
+ %input{ :type => :submit, :name => "commit", :value => "create" }/
@@ -2,6 +2,10 @@
2
2
  = @storage_volume.id
3
3
 
4
4
  %dl
5
+ %di
6
+ %dt Name
7
+ %dd
8
+ = @storage_volume.name
5
9
  %di
6
10
  %dt Created
7
11
  %dd
@@ -10,6 +14,10 @@
10
14
  %dt Capacity
11
15
  %dd
12
16
  = "#{@storage_volume.capacity} GB"
17
+ %di
18
+ %dt Realm
19
+ %dd
20
+ = @storage_volume.realm_id
13
21
  %di
14
22
  %dt State
15
23
  %dd
@@ -1,11 +1,33 @@
1
- !!!XML
1
+ - unless defined?(partial)
2
+ !!!XML
2
3
  %storage_volume{ :href => storage_volume_url(@storage_volume.id), :id => @storage_volume.id}
3
- %created<
4
- =@storage_volume.created
4
+ - if @storage_volume.created
5
+ %created<
6
+ =@storage_volume.created
5
7
  %capacity{ :unit => "GB" }<
6
8
  = @storage_volume.capacity
9
+ - if @storage_volume.kind
10
+ %kind<
11
+ = @storage_volume.kind
12
+ - if @storage_volume.name
13
+ %name<
14
+ = @storage_volume.name
15
+ - if @storage_volume.device
16
+ %device<
17
+ = @storage_volume.device
18
+ - if @storage_volume.realm_id
19
+ %realm_id<
20
+ = @storage_volume.realm_id
21
+ - if @storage_volume.state
22
+ %state<
23
+ = @storage_volume.state
24
+
7
25
  - unless @storage_volume.instance_id.nil?
8
26
  %mount
9
27
  %instance{:href => @storage_volume.instance_id, :id => @storage_volume.instance_id}
10
28
  - unless @storage_volume.device.nil?
11
29
  %device{ :name => @storage_volume.device }
30
+ - if @storage_volume.actions
31
+ %actions
32
+ - @storage_volume.actions.each do |action|
33
+ %link{:rel => action, :method => action_method(action, :storage_volumes), :href => self.send("#{action}_storage_volume_url", @storage_volume.id)}
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deltacloud-core
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
5
- prerelease: false
4
+ hash: 19
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
9
- - 2
10
- version: 0.1.2
8
+ - 3
9
+ - 0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Red Hat, Inc.
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-09 00:00:00 +01:00
18
+ date: 2011-04-29 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -123,9 +123,25 @@ dependencies:
123
123
  type: :runtime
124
124
  version_requirements: *id006
125
125
  - !ruby/object:Gem::Dependency
126
- name: compass
126
+ name: net-ssh
127
127
  prerelease: false
128
128
  requirement: &id007 !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ hash: 15
134
+ segments:
135
+ - 2
136
+ - 0
137
+ - 0
138
+ version: 2.0.0
139
+ type: :runtime
140
+ version_requirements: *id007
141
+ - !ruby/object:Gem::Dependency
142
+ name: compass
143
+ prerelease: false
144
+ requirement: &id008 !ruby/object:Gem::Requirement
129
145
  none: false
130
146
  requirements:
131
147
  - - ">="
@@ -137,11 +153,11 @@ dependencies:
137
153
  - 17
138
154
  version: 0.8.17
139
155
  type: :development
140
- version_requirements: *id007
156
+ version_requirements: *id008
141
157
  - !ruby/object:Gem::Dependency
142
158
  name: nokogiri
143
159
  prerelease: false
144
- requirement: &id008 !ruby/object:Gem::Requirement
160
+ requirement: &id009 !ruby/object:Gem::Requirement
145
161
  none: false
146
162
  requirements:
147
163
  - - ">="
@@ -161,11 +177,11 @@ dependencies:
161
177
  - 4
162
178
  version: 1.4.4
163
179
  type: :development
164
- version_requirements: *id008
180
+ version_requirements: *id009
165
181
  - !ruby/object:Gem::Dependency
166
182
  name: rack-test
167
183
  prerelease: false
168
- requirement: &id009 !ruby/object:Gem::Requirement
184
+ requirement: &id010 !ruby/object:Gem::Requirement
169
185
  none: false
170
186
  requirements:
171
187
  - - ">="
@@ -177,11 +193,11 @@ dependencies:
177
193
  - 3
178
194
  version: 0.5.3
179
195
  type: :development
180
- version_requirements: *id009
196
+ version_requirements: *id010
181
197
  - !ruby/object:Gem::Dependency
182
198
  name: cucumber
183
199
  prerelease: false
184
- requirement: &id010 !ruby/object:Gem::Requirement
200
+ requirement: &id011 !ruby/object:Gem::Requirement
185
201
  none: false
186
202
  requirements:
187
203
  - - ">="
@@ -193,11 +209,11 @@ dependencies:
193
209
  - 3
194
210
  version: 0.6.3
195
211
  type: :development
196
- version_requirements: *id010
212
+ version_requirements: *id011
197
213
  - !ruby/object:Gem::Dependency
198
214
  name: rcov
199
215
  prerelease: false
200
- requirement: &id011 !ruby/object:Gem::Requirement
216
+ requirement: &id012 !ruby/object:Gem::Requirement
201
217
  none: false
202
218
  requirements:
203
219
  - - ">="
@@ -209,7 +225,7 @@ dependencies:
209
225
  - 8
210
226
  version: 0.9.8
211
227
  type: :development
212
- version_requirements: *id011
228
+ version_requirements: *id012
213
229
  description: " The Deltacloud API is built as a service-based REST API.\n You do not directly link a Deltacloud library into your program to use it.\n Instead, a client speaks the Deltacloud API over HTTP to a server\n which implements the REST interface.\n"
214
230
  email: deltacloud-users@lists.fedorahosted.org
215
231
  executables:
@@ -217,76 +233,78 @@ executables:
217
233
  extensions: []
218
234
 
219
235
  extra_rdoc_files:
220
- - COPYING
236
+ - LICENSE
237
+ - DISCLAIMER
238
+ - NOTICE
221
239
  files:
222
240
  - Rakefile
241
+ - deltacloud-core.gemspec
223
242
  - config.ru
224
- - parse.rb
225
- - test.rb
226
243
  - deltacloud.rb
227
244
  - server.rb
228
- - support/fedora/rubygem-deltacloud-core.spec
245
+ - config/drivers.yaml
246
+ - support/fedora/deltacloud-core
247
+ - support/fedora/deltacloud-core.spec
229
248
  - support/fedora/deltacloudd
230
- - lib/sinatra/accept_media_types.rb
231
- - lib/sinatra/respond_to.rb
232
- - lib/sinatra/static_assets.rb
233
- - lib/sinatra/url_for.rb
234
- - lib/sinatra/lazy_auth.rb
235
- - lib/sinatra/rabbit.rb
236
- - lib/sinatra/rack_driver_select.rb
237
- - lib/deltacloud/models/base_model.rb
238
- - lib/deltacloud/models/blob.rb
239
- - lib/deltacloud/models/bucket.rb
240
- - lib/deltacloud/models/image.rb
241
- - lib/deltacloud/models/instance_profile.rb
242
- - lib/deltacloud/models/key.rb
243
- - lib/deltacloud/models/realm.rb
244
- - lib/deltacloud/models/storage_snapshot.rb
245
- - lib/deltacloud/models/storage_volume.rb
246
- - lib/deltacloud/models/load_balancer.rb
247
- - lib/deltacloud/models/instance.rb
248
- - lib/deltacloud/drivers/terremark/terremark_driver.rb
249
+ - support/fedora/rubygem-deltacloud-core.spec
250
+ - lib/deltacloud/backend_capability.rb
251
+ - lib/deltacloud/base_driver/base_driver.rb
252
+ - lib/deltacloud/base_driver/features.rb
253
+ - lib/deltacloud/base_driver/mock_driver.rb
254
+ - lib/deltacloud/base_driver.rb
255
+ - lib/deltacloud/core_ext/integer.rb
256
+ - lib/deltacloud/core_ext/string.rb
257
+ - lib/deltacloud/core_ext.rb
258
+ - lib/deltacloud/drivers/azure/azure_driver.rb
259
+ - lib/deltacloud/drivers/ec2/ec2_driver.rb
260
+ - lib/deltacloud/drivers/ec2/ec2_mock_driver.rb
261
+ - lib/deltacloud/drivers/eucalyptus/eucalyptus_driver.rb
249
262
  - lib/deltacloud/drivers/gogrid/gogrid_client.rb
250
263
  - lib/deltacloud/drivers/gogrid/gogrid_driver.rb
251
- - lib/deltacloud/drivers/opennebula/occi_client.rb
264
+ - lib/deltacloud/drivers/mock/mock_driver.rb
252
265
  - lib/deltacloud/drivers/opennebula/cloud_client.rb
266
+ - lib/deltacloud/drivers/opennebula/occi_client.rb
253
267
  - lib/deltacloud/drivers/opennebula/opennebula_driver.rb
254
- - lib/deltacloud/drivers/mock/mock_driver.rb
255
- - lib/deltacloud/drivers/rimuhosting/rimuhosting_driver.rb
256
- - lib/deltacloud/drivers/rimuhosting/rimuhosting_client.rb
257
268
  - lib/deltacloud/drivers/rackspace/rackspace_driver.rb
258
- - lib/deltacloud/drivers/rackspace/rackspace_client.rb
269
+ - lib/deltacloud/drivers/rhevm/rhevm_client.rb
259
270
  - lib/deltacloud/drivers/rhevm/rhevm_driver.rb
260
- - lib/deltacloud/drivers/azure/azure_driver.rb
261
- - lib/deltacloud/drivers/ec2/ec2_mock_driver.rb
262
- - lib/deltacloud/drivers/ec2/ec2_driver.rb
263
- - lib/deltacloud/base_driver/features.rb
264
- - lib/deltacloud/base_driver/mock_driver.rb
265
- - lib/deltacloud/base_driver/base_driver.rb
271
+ - lib/deltacloud/drivers/rimuhosting/rimuhosting_client.rb
272
+ - lib/deltacloud/drivers/rimuhosting/rimuhosting_driver.rb
273
+ - lib/deltacloud/drivers/sbc/sbc_client.rb
274
+ - lib/deltacloud/drivers/sbc/sbc_driver.rb
275
+ - lib/deltacloud/drivers/terremark/terremark_driver.rb
276
+ - lib/deltacloud/hardware_profile.rb
277
+ - lib/deltacloud/helpers/application_helper.rb
266
278
  - lib/deltacloud/helpers/blob_stream.rb
267
279
  - lib/deltacloud/helpers/conversion_helper.rb
268
280
  - lib/deltacloud/helpers/hardware_profiles_helper.rb
269
- - lib/deltacloud/helpers/application_helper.rb
270
- - lib/deltacloud/backend_capability.rb
271
- - lib/deltacloud/base_driver.rb
272
- - lib/deltacloud/hardware_profile.rb
273
281
  - lib/deltacloud/helpers.rb
274
282
  - lib/deltacloud/method_serializer.rb
283
+ - lib/deltacloud/models/base_model.rb
284
+ - lib/deltacloud/models/blob.rb
285
+ - lib/deltacloud/models/bucket.rb
286
+ - lib/deltacloud/models/image.rb
287
+ - lib/deltacloud/models/instance.rb
288
+ - lib/deltacloud/models/instance_profile.rb
289
+ - lib/deltacloud/models/key.rb
290
+ - lib/deltacloud/models/load_balancer.rb
291
+ - lib/deltacloud/models/realm.rb
292
+ - lib/deltacloud/models/storage_snapshot.rb
293
+ - lib/deltacloud/models/storage_volume.rb
294
+ - lib/deltacloud/runner.rb
275
295
  - lib/deltacloud/state_machine.rb
276
296
  - lib/deltacloud/validation.rb
277
297
  - lib/drivers.rb
278
- - lib/deltacloud/drivers/mock/data/storage_volumes/vol1.yml
279
- - lib/deltacloud/drivers/mock/data/storage_volumes/vol3.yml
280
- - lib/deltacloud/drivers/mock/data/storage_volumes/vol2.yml
281
- - lib/deltacloud/drivers/mock/data/storage_snapshots/snap3.yml
282
- - lib/deltacloud/drivers/mock/data/storage_snapshots/snap1.yml
283
- - lib/deltacloud/drivers/mock/data/storage_snapshots/snap2.yml
284
- - lib/deltacloud/drivers/mock/data/images/img2.yml
285
- - lib/deltacloud/drivers/mock/data/images/img3.yml
286
- - lib/deltacloud/drivers/mock/data/images/img1.yml
287
- - lib/deltacloud/drivers/mock/data/instances/inst1.yml
288
- - lib/deltacloud/drivers/mock/data/instances/inst2.yml
289
- - lib/deltacloud/drivers/mock/data/instances/inst0.yml
298
+ - lib/sinatra/accept_media_types.rb
299
+ - lib/sinatra/lazy_auth.rb
300
+ - lib/sinatra/rabbit.rb
301
+ - lib/sinatra/rack_driver_select.rb
302
+ - lib/sinatra/rack_etag.rb
303
+ - lib/sinatra/rack_matrix_params.rb
304
+ - lib/sinatra/rack_runtime.rb
305
+ - lib/sinatra/respond_to.rb
306
+ - lib/sinatra/static_assets.rb
307
+ - lib/sinatra/url_for.rb
290
308
  - lib/deltacloud/drivers/mock/data/buckets/blobs/blob1.yml
291
309
  - lib/deltacloud/drivers/mock/data/buckets/blobs/blob2.yml
292
310
  - lib/deltacloud/drivers/mock/data/buckets/blobs/blob3.yml
@@ -294,90 +312,142 @@ files:
294
312
  - lib/deltacloud/drivers/mock/data/buckets/blobs/blob5.yml
295
313
  - lib/deltacloud/drivers/mock/data/buckets/bucket1.yml
296
314
  - lib/deltacloud/drivers/mock/data/buckets/bucket2.yml
297
- - views/instance_states/show.xml.haml
298
- - views/instance_states/show.html.haml
299
- - views/root/index.html.haml
300
- - views/storage_volumes/show.html.haml
301
- - views/storage_volumes/index.html.haml
302
- - views/storage_volumes/index.xml.haml
303
- - views/storage_volumes/show.xml.haml
315
+ - lib/deltacloud/drivers/mock/data/images/img1.yml
316
+ - lib/deltacloud/drivers/mock/data/images/img2.yml
317
+ - lib/deltacloud/drivers/mock/data/images/img3.yml
318
+ - lib/deltacloud/drivers/mock/data/instances/inst0.yml
319
+ - lib/deltacloud/drivers/mock/data/instances/inst1.yml
320
+ - lib/deltacloud/drivers/mock/data/instances/inst2.yml
321
+ - lib/deltacloud/drivers/mock/data/storage_snapshots/snap1.yml
322
+ - lib/deltacloud/drivers/mock/data/storage_snapshots/snap2.yml
323
+ - lib/deltacloud/drivers/mock/data/storage_snapshots/snap3.yml
324
+ - lib/deltacloud/drivers/mock/data/storage_volumes/vol1.yml
325
+ - lib/deltacloud/drivers/mock/data/storage_volumes/vol2.yml
326
+ - lib/deltacloud/drivers/mock/data/storage_volumes/vol3.yml
327
+ - tests/common.rb
328
+ - tests/drivers/mock/api_test.rb
329
+ - tests/drivers/mock/hardware_profiles_test.rb
330
+ - tests/drivers/mock/images_test.rb
331
+ - tests/drivers/mock/instance_states_test.rb
332
+ - tests/drivers/mock/instances_test.rb
333
+ - tests/drivers/mock/realms_test.rb
334
+ - tests/drivers/mock/setup.rb
335
+ - tests/drivers/mock/url_for_test.rb
336
+ - tests/drivers/rackspace/api_test.rb
337
+ - tests/drivers/rackspace/hardware_profiles_test.rb
338
+ - tests/drivers/rackspace/images_test.rb
339
+ - tests/drivers/rackspace/instances_test.rb
340
+ - tests/drivers/rackspace/realms_test.rb
341
+ - tests/drivers/rackspace/setup.rb
342
+ - tests/drivers/rhevm/api_test.rb
343
+ - tests/drivers/rhevm/hardware_profiles_test.rb
344
+ - tests/drivers/rhevm/images_test.rb
345
+ - tests/drivers/rhevm/instances_test.rb
346
+ - tests/drivers/rhevm/realms_test.rb
347
+ - tests/drivers/rhevm/setup.rb
348
+ - tests/rabbit_test.rb
304
349
  - views/accounts/index.html.haml
305
350
  - views/accounts/show.html.haml
306
- - views/storage_snapshots/show.html.haml
307
- - views/storage_snapshots/index.xml.haml
308
- - views/storage_snapshots/index.html.haml
309
- - views/storage_snapshots/show.xml.haml
310
- - views/errors/not_found.html.haml
311
- - views/errors/auth_exception.xml.haml
312
- - views/errors/validation_failure.xml.haml
313
- - views/errors/not_found.xml.haml
351
+ - views/api/show.html.haml
352
+ - views/api/show.xml.haml
353
+ - views/blobs/new.html.haml
354
+ - views/blobs/show.html.haml
355
+ - views/blobs/show.xml.haml
356
+ - views/buckets/index.html.haml
357
+ - views/buckets/index.xml.haml
358
+ - views/buckets/new.html.haml
359
+ - views/buckets/show.html.haml
360
+ - views/buckets/show.xml.haml
361
+ - views/docs/collection.html.haml
362
+ - views/docs/collection.xml.haml
363
+ - views/docs/index.html.haml
364
+ - views/docs/index.xml.haml
365
+ - views/docs/operation.html.haml
366
+ - views/docs/operation.xml.haml
367
+ - views/drivers/index.html.haml
368
+ - views/drivers/index.xml.haml
369
+ - views/drivers/show.html.haml
370
+ - views/drivers/show.xml.haml
371
+ - views/error.html.haml
314
372
  - views/errors/auth_exception.html.haml
315
- - views/errors/validation_failure.html.haml
316
- - views/errors/not_allowed.html.haml
317
- - views/errors/not_allowed.xml.haml
318
- - views/errors/backend_error.html.haml
373
+ - views/errors/auth_exception.xml.haml
319
374
  - views/errors/backend_capability_failure.html.haml
320
375
  - views/errors/backend_capability_failure.xml.haml
376
+ - views/errors/backend_error.html.haml
321
377
  - views/errors/backend_error.xml.haml
378
+ - views/errors/not_allowed.html.haml
379
+ - views/errors/not_allowed.xml.haml
380
+ - views/errors/not_found.html.haml
381
+ - views/errors/not_found.xml.haml
382
+ - views/errors/validation_failure.html.haml
383
+ - views/errors/validation_failure.xml.haml
384
+ - views/hardware_profiles/index.html.haml
385
+ - views/hardware_profiles/index.xml.haml
386
+ - views/hardware_profiles/show.html.haml
387
+ - views/hardware_profiles/show.xml.haml
322
388
  - views/images/index.html.haml
323
- - views/images/show.html.haml
324
389
  - views/images/index.xml.haml
390
+ - views/images/new.html.haml
391
+ - views/images/show.html.haml
325
392
  - views/images/show.xml.haml
326
- - views/keys/new.html.haml
327
- - views/keys/show.html.haml
328
- - views/keys/index.html.haml
329
- - views/keys/index.xml.haml
330
- - views/keys/show.xml.haml
393
+ - views/instance_states/show.html.haml
394
+ - views/instance_states/show.xml.haml
331
395
  - views/instances/index.html.haml
396
+ - views/instances/index.xml.haml
332
397
  - views/instances/new.html.haml
398
+ - views/instances/run.html.haml
399
+ - views/instances/run.xml.haml
400
+ - views/instances/run_command.html.haml
333
401
  - views/instances/show.html.haml
334
- - views/instances/index.xml.haml
335
402
  - views/instances/show.xml.haml
336
- - views/hardware_profiles/index.html.haml
337
- - views/hardware_profiles/show.html.haml
338
- - views/hardware_profiles/index.xml.haml
339
- - views/hardware_profiles/show.xml.haml
340
- - views/docs/operation.xml.haml
341
- - views/docs/operation.html.haml
342
- - views/docs/collection.xml.haml
343
- - views/docs/index.xml.haml
344
- - views/docs/index.html.haml
345
- - views/docs/collection.html.haml
346
- - views/realms/show.html.haml
347
- - views/realms/index.html.haml
348
- - views/realms/index.xml.haml
349
- - views/realms/show.xml.haml
350
- - views/blobs/new.html.haml
351
- - views/blobs/show.html.haml
352
- - views/blobs/show.xml.haml
353
- - views/buckets/new.html.haml
354
- - views/buckets/index.html.haml
355
- - views/buckets/show.html.haml
356
- - views/buckets/index.xml.haml
357
- - views/buckets/show.xml.haml
403
+ - views/keys/index.html.haml
404
+ - views/keys/index.xml.haml
405
+ - views/keys/new.html.haml
406
+ - views/keys/show.html.haml
407
+ - views/keys/show.xml.haml
408
+ - views/layout.html.haml
358
409
  - views/load_balancers/index.html.haml
359
- - views/load_balancers/new.html.haml
360
410
  - views/load_balancers/index.xml.haml
411
+ - views/load_balancers/new.html.haml
361
412
  - views/load_balancers/show.html.haml
362
413
  - views/load_balancers/show.xml.haml
363
- - views/api/drivers.xml.haml
364
- - views/api/show.html.haml
365
- - views/api/show.xml.haml
366
- - views/layout.html.haml
414
+ - views/realms/index.html.haml
415
+ - views/realms/index.xml.haml
416
+ - views/realms/show.html.haml
417
+ - views/realms/show.xml.haml
418
+ - views/root/index.html.haml
419
+ - views/storage_snapshots/index.html.haml
420
+ - views/storage_snapshots/index.xml.haml
421
+ - views/storage_snapshots/new.html.haml
422
+ - views/storage_snapshots/show.html.haml
423
+ - views/storage_snapshots/show.xml.haml
424
+ - views/storage_volumes/attach.html.haml
425
+ - views/storage_volumes/index.html.haml
426
+ - views/storage_volumes/index.xml.haml
427
+ - views/storage_volumes/new.html.haml
428
+ - views/storage_volumes/show.html.haml
429
+ - views/storage_volumes/show.xml.haml
367
430
  - views/instance_states/show.png.erb
368
431
  - public/favicon.ico
369
- - public/images/topbar-bg.png
432
+ - public/images/bread-bg.png
433
+ - public/images/error.png
370
434
  - public/images/grid.png
371
- - public/images/rails.png
372
435
  - public/images/logo-wide.png
373
- - public/javascripts/jquery-1.4.2.min.js
436
+ - public/images/pending.png
437
+ - public/images/rails.png
438
+ - public/images/running.png
439
+ - public/images/stopped.png
440
+ - public/images/topbar-bg.png
374
441
  - public/javascripts/application.js
442
+ - public/javascripts/jquery-1.4.2.min.js
443
+ - public/stylesheets/compiled/application.css
375
444
  - public/stylesheets/compiled/ie.css
376
445
  - public/stylesheets/compiled/print.css
377
446
  - public/stylesheets/compiled/screen.css
378
- - public/stylesheets/compiled/application.css
379
447
  - bin/deltacloudd
380
- - COPYING
448
+ - LICENSE
449
+ - DISCLAIMER
450
+ - NOTICE
381
451
  has_rdoc: true
382
452
  homepage: http://www.deltacloud.org
383
453
  licenses: []
@@ -410,9 +480,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
410
480
  requirements: []
411
481
 
412
482
  rubyforge_project:
413
- rubygems_version: 1.3.7
483
+ rubygems_version: 1.6.2
414
484
  signing_key:
415
485
  specification_version: 3
416
486
  summary: Deltacloud REST API
417
- test_files: []
418
-
487
+ test_files:
488
+ - tests/rabbit_test.rb