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.
- data/DISCLAIMER +8 -0
- data/{COPYING → LICENSE} +0 -0
- data/NOTICE +13 -0
- data/Rakefile +50 -51
- data/bin/deltacloudd +8 -1
- data/config.ru +0 -2
- data/config/drivers.yaml +48 -0
- data/deltacloud-core.gemspec +75 -0
- data/deltacloud.rb +3 -2
- data/lib/deltacloud/backend_capability.rb +15 -3
- data/lib/deltacloud/base_driver.rb +0 -2
- data/lib/deltacloud/base_driver/base_driver.rb +85 -89
- data/lib/deltacloud/base_driver/features.rb +61 -7
- data/lib/deltacloud/base_driver/mock_driver.rb +42 -43
- data/lib/deltacloud/core_ext.rb +18 -0
- data/lib/deltacloud/core_ext/integer.rb +31 -0
- data/lib/deltacloud/core_ext/string.rb +50 -0
- data/lib/deltacloud/drivers/azure/azure_driver.rb +71 -22
- data/lib/deltacloud/drivers/ec2/ec2_driver.rb +641 -584
- data/lib/deltacloud/drivers/ec2/ec2_mock_driver.rb +0 -2
- data/lib/deltacloud/drivers/eucalyptus/eucalyptus_driver.rb +167 -0
- data/lib/deltacloud/drivers/gogrid/gogrid_client.rb +39 -1
- data/lib/deltacloud/drivers/gogrid/gogrid_driver.rb +41 -25
- data/lib/deltacloud/drivers/mock/data/buckets/blobs/blob1.yml +6 -3
- data/lib/deltacloud/drivers/mock/data/buckets/blobs/blob2.yml +6 -3
- data/lib/deltacloud/drivers/mock/data/buckets/blobs/blob3.yml +4 -2
- data/lib/deltacloud/drivers/mock/data/buckets/blobs/blob4.yml +5 -2
- data/lib/deltacloud/drivers/mock/data/buckets/blobs/blob5.yml +4 -2
- data/lib/deltacloud/drivers/mock/data/instances/inst0.yml +1 -0
- data/lib/deltacloud/drivers/mock/data/instances/inst1.yml +1 -0
- data/lib/deltacloud/drivers/mock/data/instances/inst2.yml +1 -0
- data/lib/deltacloud/drivers/mock/data/storage_volumes/vol1.yml +1 -0
- data/lib/deltacloud/drivers/mock/data/storage_volumes/vol2.yml +1 -0
- data/lib/deltacloud/drivers/mock/data/storage_volumes/vol3.yml +1 -0
- data/lib/deltacloud/drivers/mock/mock_driver.rb +138 -30
- data/lib/deltacloud/drivers/opennebula/cloud_client.rb +13 -15
- data/lib/deltacloud/drivers/opennebula/occi_client.rb +13 -15
- data/lib/deltacloud/drivers/opennebula/opennebula_driver.rb +13 -15
- data/lib/deltacloud/drivers/rackspace/rackspace_driver.rb +224 -113
- data/lib/deltacloud/drivers/rhevm/rhevm_client.rb +332 -0
- data/lib/deltacloud/drivers/rhevm/rhevm_driver.rb +221 -170
- data/lib/deltacloud/drivers/rimuhosting/rimuhosting_driver.rb +0 -1
- data/lib/deltacloud/drivers/sbc/sbc_client.rb +247 -0
- data/lib/deltacloud/drivers/sbc/sbc_driver.rb +297 -0
- data/lib/deltacloud/drivers/terremark/terremark_driver.rb +0 -2
- data/lib/deltacloud/hardware_profile.rb +1 -3
- data/lib/deltacloud/helpers.rb +0 -2
- data/lib/deltacloud/helpers/application_helper.rb +86 -12
- data/lib/deltacloud/helpers/blob_stream.rb +19 -2
- data/lib/deltacloud/helpers/conversion_helper.rb +0 -2
- data/lib/deltacloud/helpers/hardware_profiles_helper.rb +0 -2
- data/lib/deltacloud/method_serializer.rb +0 -2
- data/lib/deltacloud/models/base_model.rb +0 -2
- data/lib/deltacloud/models/blob.rb +1 -2
- data/lib/deltacloud/models/bucket.rb +0 -2
- data/lib/deltacloud/models/image.rb +0 -2
- data/lib/deltacloud/models/instance.rb +19 -2
- data/lib/deltacloud/models/instance_profile.rb +4 -2
- data/lib/deltacloud/models/key.rb +0 -2
- data/lib/deltacloud/models/load_balancer.rb +0 -2
- data/lib/deltacloud/models/realm.rb +0 -2
- data/lib/deltacloud/models/storage_snapshot.rb +0 -2
- data/lib/deltacloud/models/storage_volume.rb +4 -2
- data/lib/deltacloud/runner.rb +132 -0
- data/lib/deltacloud/state_machine.rb +0 -2
- data/lib/deltacloud/validation.rb +9 -7
- data/lib/drivers.rb +36 -48
- data/lib/sinatra/accept_media_types.rb +26 -0
- data/lib/sinatra/lazy_auth.rb +16 -0
- data/lib/sinatra/rabbit.rb +112 -54
- data/lib/sinatra/rack_driver_select.rb +50 -16
- data/lib/sinatra/rack_etag.rb +79 -0
- data/lib/sinatra/rack_matrix_params.rb +84 -0
- data/lib/sinatra/rack_runtime.rb +47 -0
- data/lib/sinatra/static_assets.rb +16 -0
- data/lib/sinatra/url_for.rb +31 -4
- data/public/favicon.ico +0 -0
- data/public/images/bread-bg.png +0 -0
- data/public/images/error.png +0 -0
- data/public/images/pending.png +0 -0
- data/public/images/running.png +0 -0
- data/public/images/stopped.png +0 -0
- data/public/javascripts/application.js +35 -0
- data/public/stylesheets/compiled/application.css +59 -5
- data/public/stylesheets/compiled/screen.css +1 -1
- data/server.rb +293 -29
- data/support/fedora/deltacloud-core +78 -0
- data/support/fedora/deltacloud-core.spec +143 -0
- data/support/fedora/deltacloudd +78 -18
- data/support/fedora/rubygem-deltacloud-core.spec +76 -40
- data/tests/common.rb +172 -0
- data/tests/drivers/mock/api_test.rb +133 -0
- data/tests/drivers/mock/hardware_profiles_test.rb +134 -0
- data/tests/drivers/mock/images_test.rb +126 -0
- data/tests/drivers/mock/instance_states_test.rb +71 -0
- data/tests/drivers/mock/instances_test.rb +236 -0
- data/tests/drivers/mock/realms_test.rb +93 -0
- data/tests/drivers/mock/setup.rb +3 -0
- data/tests/drivers/mock/url_for_test.rb +67 -0
- data/tests/drivers/rackspace/api_test.rb +41 -0
- data/tests/drivers/rackspace/hardware_profiles_test.rb +53 -0
- data/tests/drivers/rackspace/images_test.rb +40 -0
- data/tests/drivers/rackspace/instances_test.rb +161 -0
- data/tests/drivers/rackspace/realms_test.rb +36 -0
- data/tests/drivers/rackspace/setup.rb +14 -0
- data/tests/drivers/rhevm/api_test.rb +39 -0
- data/tests/drivers/rhevm/hardware_profiles_test.rb +53 -0
- data/tests/drivers/rhevm/images_test.rb +42 -0
- data/tests/drivers/rhevm/instances_test.rb +179 -0
- data/tests/drivers/rhevm/realms_test.rb +35 -0
- data/tests/drivers/rhevm/setup.rb +14 -0
- data/tests/rabbit_test.rb +52 -0
- data/views/api/show.html.haml +2 -5
- data/views/blobs/new.html.haml +17 -1
- data/views/blobs/show.html.haml +6 -0
- data/views/blobs/show.xml.haml +5 -1
- data/views/buckets/index.html.haml +1 -12
- data/views/buckets/index.xml.haml +3 -5
- data/views/docs/operation.html.haml +23 -11
- data/views/drivers/index.html.haml +15 -0
- data/views/drivers/index.xml.haml +7 -0
- data/views/drivers/show.html.haml +20 -0
- data/views/drivers/show.xml.haml +7 -0
- data/views/error.html.haml +31 -0
- data/views/errors/auth_exception.xml.haml +2 -1
- data/views/errors/backend_capability_failure.xml.haml +2 -1
- data/views/errors/backend_error.html.haml +3 -0
- data/views/errors/backend_error.xml.haml +2 -2
- data/views/errors/validation_failure.xml.haml +3 -2
- data/views/images/index.html.haml +1 -6
- data/views/images/index.xml.haml +2 -0
- data/views/images/new.html.haml +14 -0
- data/views/images/show.xml.haml +2 -0
- data/views/instances/index.html.haml +8 -6
- data/views/instances/index.xml.haml +4 -0
- data/views/instances/new.html.haml +40 -11
- data/views/instances/run.html.haml +9 -0
- data/views/instances/run.xml.haml +7 -0
- data/views/instances/run_command.html.haml +16 -0
- data/views/instances/show.html.haml +14 -0
- data/views/instances/show.xml.haml +12 -4
- data/views/layout.html.haml +7 -2
- data/views/load_balancers/index.html.haml +1 -1
- data/views/load_balancers/new.html.haml +2 -2
- data/views/load_balancers/show.html.haml +1 -1
- data/views/storage_snapshots/index.html.haml +3 -0
- data/views/storage_snapshots/new.html.haml +9 -0
- data/views/storage_volumes/attach.html.haml +20 -0
- data/views/storage_volumes/index.html.haml +16 -1
- data/views/storage_volumes/index.xml.haml +1 -10
- data/views/storage_volumes/new.html.haml +17 -0
- data/views/storage_volumes/show.html.haml +8 -0
- data/views/storage_volumes/show.xml.haml +25 -3
- metadata +197 -127
- data/lib/deltacloud/drivers/rackspace/rackspace_client.rb +0 -130
- data/parse.rb +0 -7
- data/test.rb +0 -3
- 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
|
-
|
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
|
-
|
1
|
+
- unless defined?(partial)
|
2
|
+
!!!XML
|
2
3
|
%storage_volume{ :href => storage_volume_url(@storage_volume.id), :id => @storage_volume.id}
|
3
|
-
|
4
|
-
|
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 19
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
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:
|
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:
|
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: *
|
156
|
+
version_requirements: *id008
|
141
157
|
- !ruby/object:Gem::Dependency
|
142
158
|
name: nokogiri
|
143
159
|
prerelease: false
|
144
|
-
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: *
|
180
|
+
version_requirements: *id009
|
165
181
|
- !ruby/object:Gem::Dependency
|
166
182
|
name: rack-test
|
167
183
|
prerelease: false
|
168
|
-
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: *
|
196
|
+
version_requirements: *id010
|
181
197
|
- !ruby/object:Gem::Dependency
|
182
198
|
name: cucumber
|
183
199
|
prerelease: false
|
184
|
-
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: *
|
212
|
+
version_requirements: *id011
|
197
213
|
- !ruby/object:Gem::Dependency
|
198
214
|
name: rcov
|
199
215
|
prerelease: false
|
200
|
-
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: *
|
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
|
-
-
|
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
|
-
-
|
245
|
+
- config/drivers.yaml
|
246
|
+
- support/fedora/deltacloud-core
|
247
|
+
- support/fedora/deltacloud-core.spec
|
229
248
|
- support/fedora/deltacloudd
|
230
|
-
-
|
231
|
-
- lib/
|
232
|
-
- lib/
|
233
|
-
- lib/
|
234
|
-
- lib/
|
235
|
-
- lib/
|
236
|
-
- lib/
|
237
|
-
- lib/deltacloud/
|
238
|
-
- lib/deltacloud/
|
239
|
-
- lib/deltacloud/
|
240
|
-
- lib/deltacloud/
|
241
|
-
- lib/deltacloud/
|
242
|
-
- lib/deltacloud/
|
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/
|
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/
|
269
|
+
- lib/deltacloud/drivers/rhevm/rhevm_client.rb
|
259
270
|
- lib/deltacloud/drivers/rhevm/rhevm_driver.rb
|
260
|
-
- lib/deltacloud/drivers/
|
261
|
-
- lib/deltacloud/drivers/
|
262
|
-
- lib/deltacloud/drivers/
|
263
|
-
- lib/deltacloud/
|
264
|
-
- lib/deltacloud/
|
265
|
-
- lib/deltacloud/
|
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/
|
279
|
-
- lib/
|
280
|
-
- lib/
|
281
|
-
- lib/
|
282
|
-
- lib/
|
283
|
-
- lib/
|
284
|
-
- lib/
|
285
|
-
- lib/
|
286
|
-
- lib/
|
287
|
-
- lib/
|
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
|
-
-
|
298
|
-
-
|
299
|
-
-
|
300
|
-
-
|
301
|
-
-
|
302
|
-
-
|
303
|
-
-
|
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/
|
307
|
-
- views/
|
308
|
-
- views/
|
309
|
-
- views/
|
310
|
-
- views/
|
311
|
-
- views/
|
312
|
-
- views/
|
313
|
-
- views/
|
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/
|
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/
|
327
|
-
- views/
|
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/
|
337
|
-
- views/
|
338
|
-
- views/
|
339
|
-
- views/
|
340
|
-
- views/
|
341
|
-
- views/
|
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/
|
364
|
-
- views/
|
365
|
-
- views/
|
366
|
-
- views/
|
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/
|
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/
|
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
|
-
-
|
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.
|
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
|