deltacloud-core 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +176 -502
- data/Rakefile +21 -14
- data/deltacloud.rb +3 -0
- data/lib/deltacloud/base_driver.rb +12 -11
- data/lib/deltacloud/base_driver/base_driver.rb +22 -11
- data/lib/deltacloud/drivers/ec2/ec2_driver.rb +15 -12
- data/lib/deltacloud/drivers/gogrid/gogrid_driver.rb +16 -11
- data/lib/deltacloud/drivers/mock/data/images/img1.yml +3 -0
- data/lib/deltacloud/drivers/mock/data/images/img2.yml +3 -0
- data/lib/deltacloud/drivers/mock/data/images/img3.yml +3 -0
- data/lib/deltacloud/drivers/mock/data/instances/inst0.yml +16 -0
- data/lib/deltacloud/drivers/mock/data/instances/inst1.yml +9 -0
- data/lib/deltacloud/drivers/mock/data/instances/inst2.yml +9 -0
- data/lib/deltacloud/drivers/mock/data/storage_snapshots/snap1.yml +4 -0
- data/lib/deltacloud/drivers/mock/data/storage_snapshots/snap2.yml +4 -0
- data/lib/deltacloud/drivers/mock/data/storage_snapshots/snap3.yml +4 -0
- data/lib/deltacloud/drivers/mock/data/storage_volumes/vol1.yml +6 -0
- data/lib/deltacloud/drivers/mock/data/storage_volumes/vol2.yml +6 -0
- data/lib/deltacloud/drivers/mock/data/storage_volumes/vol3.yml +6 -0
- data/lib/deltacloud/drivers/mock/mock_driver.rb +13 -11
- data/lib/deltacloud/drivers/rackspace/rackspace_client.rb +12 -11
- data/lib/deltacloud/drivers/rackspace/rackspace_driver.rb +12 -11
- data/lib/deltacloud/drivers/rhevm/rhevm_driver.rb +12 -11
- data/lib/deltacloud/drivers/rimuhosting/rimuhosting_client.rb +12 -11
- data/lib/deltacloud/drivers/rimuhosting/rimuhosting_driver.rb +14 -12
- data/lib/deltacloud/drivers/terremark/terremark_driver.rb +12 -11
- data/lib/deltacloud/helpers/application_helper.rb +64 -11
- data/lib/deltacloud/helpers/conversion_helper.rb +12 -11
- data/lib/deltacloud/method_serializer.rb +12 -11
- data/lib/deltacloud/models/base_model.rb +12 -11
- data/lib/deltacloud/models/image.rb +12 -11
- data/lib/deltacloud/models/instance.rb +13 -12
- data/lib/deltacloud/models/instance_profile.rb +12 -11
- data/lib/deltacloud/models/realm.rb +12 -11
- data/lib/deltacloud/models/storage_snapshot.rb +12 -11
- data/lib/deltacloud/models/storage_volume.rb +12 -11
- data/lib/drivers.rb +12 -0
- data/lib/sinatra/rabbit.rb +1 -0
- data/lib/sinatra/respond_to.rb +3 -0
- data/server.rb +40 -80
- data/tests/api_test.rb +37 -0
- data/tests/hardware_profiles_test.rb +120 -0
- data/tests/images_test.rb +95 -78
- data/tests/instance_states_test.rb +52 -0
- data/tests/instances_test.rb +193 -110
- data/tests/realms_test.rb +66 -44
- data/views/errors/not_found.html.haml +6 -0
- data/views/errors/not_found.xml.haml +2 -0
- data/views/hardware_profiles/index.xml.haml +1 -1
- data/views/hardware_profiles/show.xml.haml +3 -2
- data/views/images/index.xml.haml +4 -3
- data/views/images/show.xml.haml +2 -2
- data/views/instances/index.xml.haml +6 -8
- data/views/instances/show.xml.haml +9 -10
- data/views/realms/index.xml.haml +1 -3
- data/views/realms/show.xml.haml +4 -5
- data/views/storage_snapshots/index.xml.haml +3 -5
- data/views/storage_snapshots/show.xml.haml +2 -4
- data/views/storage_volumes/index.xml.haml +7 -7
- data/views/storage_volumes/show.xml.haml +2 -4
- metadata +156 -81
- data/tests/deltacloud_test.rb +0 -60
- data/tests/storage_snapshots_test.rb +0 -48
- data/tests/storage_volumes_test.rb +0 -48
@@ -1,7 +1,8 @@
|
|
1
1
|
- unless defined?(partial)
|
2
2
|
!!! XML
|
3
|
-
%
|
4
|
-
%
|
3
|
+
%hardware_profile{ :href => hardware_profile_url(@profile.name), :id => @profile.name }
|
4
|
+
%name<
|
5
|
+
=@profile.name
|
5
6
|
- @profile.each_property do |prop|
|
6
7
|
- attr = { :name => prop.name, :kind => prop.kind, :unit => prop.unit }
|
7
8
|
- if prop.kind == :fixed
|
data/views/images/index.xml.haml
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
!!! XML
|
2
2
|
%images
|
3
3
|
- @elements.each do |image|
|
4
|
-
%image{:href => image_url(image.id)}
|
5
|
-
- image.attributes.each do |attribute|
|
6
|
-
- haml_tag(attribute, :<) do
|
4
|
+
%image{:href => image_url(image.id), :id => image.id}
|
5
|
+
- image.attributes.select{ |attr| attr!=:id }.each do |attribute|
|
6
|
+
- haml_tag("#{attribute}".tr('-', '_'), :<) do
|
7
7
|
- haml_concat image.send(attribute)
|
8
|
+
|
data/views/images/show.xml.haml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
!!! XML
|
2
|
-
%image{:href => image_url(@image.id)}
|
3
|
-
- @image.attributes.each do |attribute|
|
2
|
+
%image{:href => image_url(@image.id), :id => @image.id}
|
3
|
+
- @image.attributes.select{ |attr| attr!=:id }.each do |attribute|
|
4
4
|
- haml_tag(attribute, :<) do
|
5
5
|
- haml_concat @image.send(attribute)
|
@@ -1,23 +1,21 @@
|
|
1
1
|
!!! XML
|
2
2
|
%instances
|
3
3
|
- @elements.each do |instance|
|
4
|
-
%instance{:href => instance_url(instance.id)}
|
5
|
-
%id #{instance.id}
|
4
|
+
%instance{:href => instance_url(instance.id), :id => instance.id}
|
6
5
|
%name #{instance.name}
|
7
6
|
%owner_id #{instance.owner_id}
|
8
|
-
%image{:href => image_url(instance.image_id)}
|
9
|
-
%realm{:href => realm_url(instance.realm_id)}
|
7
|
+
%image{:href => image_url(instance.image_id), :id => instance.image_id }
|
8
|
+
%realm{:href => realm_url(instance.realm_id), :id => instance.realm_id }
|
10
9
|
%state #{instance.state}
|
11
|
-
- haml_tag :"
|
12
|
-
%id #{instance.instance_profile.id}
|
10
|
+
- haml_tag :"hardware_profile", { :id => instance.instance_profile.id, :href => hardware_profile_url(instance.instance_profile.id)} do
|
13
11
|
- instance.instance_profile.overrides.each do |p, v|
|
14
12
|
%property{:kind => 'fixed', :name => p, :value => v, :unit => Deltacloud::HardwareProfile::unit(p)}
|
15
13
|
%actions
|
16
14
|
- instance.actions.compact.each do |action|
|
17
15
|
%link{:rel => action, :href => self.send("#{action}_instance_url", instance.id), :method => instance_action_method(action)}
|
18
|
-
%
|
16
|
+
%public_addresses
|
19
17
|
- instance.public_addresses.each do |address|
|
20
18
|
%address #{address}
|
21
|
-
%
|
19
|
+
%private_addresses
|
22
20
|
- instance.private_addresses.each do |address|
|
23
21
|
%address #{address}
|
@@ -1,28 +1,27 @@
|
|
1
1
|
!!! XML
|
2
|
-
%instance{:href => instance_url(@instance.id)}
|
3
|
-
%id<
|
4
|
-
=@instance.id
|
2
|
+
%instance{:href => instance_url(@instance.id), :id => @instance.id}
|
5
3
|
%name<
|
6
4
|
=@instance.name
|
7
5
|
%owner_id<
|
8
6
|
=@instance.owner_id
|
9
|
-
%image{:href => image_url(@instance.image_id)}
|
10
|
-
%realm{:href => realm_url(@instance.realm_id)}
|
7
|
+
%image{:href => image_url(@instance.image_id), :id => @instance.image_id }
|
8
|
+
%realm{:href => realm_url(@instance.realm_id), :id => @instance.realm_id }
|
11
9
|
%state<
|
12
10
|
=@instance.state
|
13
|
-
- haml_tag :"
|
14
|
-
%id<
|
15
|
-
=@instance.instance_profile.id
|
11
|
+
- haml_tag :"hardware_profile", {:id => @instance.instance_profile.id, :href => hardware_profile_url(@instance.instance_profile.id)} do
|
16
12
|
- @instance.instance_profile.overrides.each do |p, v|
|
17
13
|
%property{:kind => 'fixed', :name => p, :value => v, :unit => Deltacloud::HardwareProfile::unit(p)}
|
18
14
|
%actions
|
19
15
|
- @instance.actions.compact.each do |instance_action|
|
20
16
|
%link{:rel => instance_action, :method => instance_action_method(instance_action), :href => self.send("#{instance_action}_instance_url", @instance.id)}
|
21
|
-
|
17
|
+
- if @instance.instance_variables.include?("@launch_time")
|
18
|
+
%launch_time<
|
19
|
+
=@instance.launch_time
|
20
|
+
%public_addresses
|
22
21
|
- @instance.public_addresses.each do |address|
|
23
22
|
%address<
|
24
23
|
=address
|
25
|
-
%
|
24
|
+
%private_addresses
|
26
25
|
- @instance.private_addresses.each do |address|
|
27
26
|
%address<
|
28
27
|
=address
|
data/views/realms/index.xml.haml
CHANGED
data/views/realms/show.xml.haml
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
!!!XML
|
2
|
-
%realm{:href => realm_url(@realm.id)}
|
3
|
-
%id<
|
4
|
-
=@realm.id
|
2
|
+
%realm{:href => realm_url(@realm.id), :id => @realm.id }
|
5
3
|
%name<
|
6
4
|
=@realm.name
|
7
5
|
%state<
|
8
6
|
=@realm.state
|
9
|
-
|
10
|
-
|
7
|
+
- unless @realm.limit.eql?(:unlimited)
|
8
|
+
%limit<
|
9
|
+
=@realm.limit
|
@@ -1,11 +1,9 @@
|
|
1
1
|
!!!XML
|
2
|
-
%
|
2
|
+
%storage_snapshots
|
3
3
|
- @elements.each do |snapshot|
|
4
|
-
%
|
5
|
-
%id<
|
6
|
-
=snapshot.id
|
4
|
+
%storage_snapshot{ :href => storage_snapshot_url(snapshot.id), :id => snapshot.id }
|
7
5
|
%created<
|
8
6
|
=snapshot.created
|
9
7
|
%state<
|
10
8
|
=snapshot.state
|
11
|
-
%
|
9
|
+
%storage_volume{ :href => storage_volume_url(snapshot.storage_volume_id), :id => snapshot.storage_volume_id }
|
@@ -1,9 +1,7 @@
|
|
1
1
|
!!!XML
|
2
|
-
%
|
3
|
-
%id<
|
4
|
-
=@storage_snapshot.id
|
2
|
+
%storage_snapshot{:href => storage_snapshot_url(@storage_snapshot.id), :id => @storage_snapshot.id }
|
5
3
|
%created<
|
6
4
|
=@storage_snapshot.created
|
7
5
|
%state<
|
8
6
|
=@storage_snapshot.state
|
9
|
-
%
|
7
|
+
%storage_volume{:href => storage_volume_url(@storage_snapshot.storage_volume_id), :id => @storage_snapshot.storage_volume_id}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
!!!XML
|
2
|
-
%
|
2
|
+
%storage_volumes
|
3
3
|
- @elements.each do |volume|
|
4
|
-
%
|
5
|
-
%id<
|
6
|
-
=volume.id
|
4
|
+
%storage_volume{ :href => storage_volume_url(volume.id), :id => volume.id }
|
7
5
|
%created<
|
8
6
|
=volume.created
|
9
7
|
%capacity<
|
10
8
|
=volume.capacity
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
- unless volume.device.nil?
|
10
|
+
%device<
|
11
|
+
=volume.device
|
12
|
+
- unless volume.instance_id.nil?
|
13
|
+
%instance{:href => instance_url(volume.instance_id), :id => volume.instance_id}
|
@@ -1,7 +1,5 @@
|
|
1
1
|
!!!XML
|
2
|
-
%
|
3
|
-
%id<
|
4
|
-
=@storage_volume.id
|
2
|
+
%storage_volume{ :href => storage_volume_url(@storage_volume.id), :id => @storage_volume.id}
|
5
3
|
%created<
|
6
4
|
=@storage_volume.created
|
7
5
|
%capacity<
|
@@ -10,4 +8,4 @@
|
|
10
8
|
=@storage_volume.device
|
11
9
|
%state<
|
12
10
|
=@storage_volume.state
|
13
|
-
%instance{:href => @storage_volume.instance_id}
|
11
|
+
%instance{:href => @storage_volume.instance_id, :id => @storage_volume.instance_id}
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deltacloud-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 3
|
9
|
+
version: 0.0.3
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Red Hat, Inc.
|
@@ -9,139 +14,191 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date: 2010-
|
17
|
+
date: 2010-07-22 00:00:00 +02:00
|
13
18
|
default_executable:
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
21
|
+
name: rake
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
- 8
|
30
|
+
- 7
|
31
|
+
version: 0.8.7
|
17
32
|
type: :runtime
|
18
|
-
|
19
|
-
|
33
|
+
version_requirements: *id001
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: eventmachine
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
20
38
|
requirements:
|
21
39
|
- - ">="
|
22
40
|
- !ruby/object:Gem::Version
|
41
|
+
segments:
|
42
|
+
- 0
|
43
|
+
- 12
|
44
|
+
- 10
|
23
45
|
version: 0.12.10
|
24
|
-
|
46
|
+
type: :runtime
|
47
|
+
version_requirements: *id002
|
25
48
|
- !ruby/object:Gem::Dependency
|
26
49
|
name: haml
|
27
|
-
|
28
|
-
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
30
52
|
requirements:
|
31
53
|
- - ">="
|
32
54
|
- !ruby/object:Gem::Version
|
55
|
+
segments:
|
56
|
+
- 2
|
57
|
+
- 2
|
58
|
+
- 17
|
33
59
|
version: 2.2.17
|
34
|
-
|
60
|
+
type: :runtime
|
61
|
+
version_requirements: *id003
|
35
62
|
- !ruby/object:Gem::Dependency
|
36
63
|
name: sinatra
|
37
|
-
|
38
|
-
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
prerelease: false
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
40
66
|
requirements:
|
41
67
|
- - ">="
|
42
68
|
- !ruby/object:Gem::Version
|
69
|
+
segments:
|
70
|
+
- 0
|
71
|
+
- 9
|
72
|
+
- 4
|
43
73
|
version: 0.9.4
|
44
|
-
|
74
|
+
type: :runtime
|
75
|
+
version_requirements: *id004
|
45
76
|
- !ruby/object:Gem::Dependency
|
46
77
|
name: rack
|
47
|
-
|
48
|
-
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
78
|
+
prerelease: false
|
79
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
50
80
|
requirements:
|
51
81
|
- - ">="
|
52
82
|
- !ruby/object:Gem::Version
|
83
|
+
segments:
|
84
|
+
- 1
|
85
|
+
- 0
|
86
|
+
- 0
|
53
87
|
version: 1.0.0
|
54
|
-
|
88
|
+
type: :runtime
|
89
|
+
version_requirements: *id005
|
55
90
|
- !ruby/object:Gem::Dependency
|
56
91
|
name: thin
|
57
|
-
|
58
|
-
|
59
|
-
version_requirements: !ruby/object:Gem::Requirement
|
92
|
+
prerelease: false
|
93
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
60
94
|
requirements:
|
61
95
|
- - ">="
|
62
96
|
- !ruby/object:Gem::Version
|
97
|
+
segments:
|
98
|
+
- 1
|
99
|
+
- 2
|
100
|
+
- 5
|
63
101
|
version: 1.2.5
|
64
|
-
version:
|
65
|
-
- !ruby/object:Gem::Dependency
|
66
|
-
name: json
|
67
102
|
type: :runtime
|
68
|
-
|
69
|
-
version_requirements: !ruby/object:Gem::Requirement
|
70
|
-
requirements:
|
71
|
-
- - ">="
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
version: 1.2.3
|
74
|
-
version:
|
103
|
+
version_requirements: *id006
|
75
104
|
- !ruby/object:Gem::Dependency
|
76
105
|
name: rerun
|
77
|
-
|
78
|
-
|
79
|
-
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
prerelease: false
|
107
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
80
108
|
requirements:
|
81
109
|
- - ">="
|
82
110
|
- !ruby/object:Gem::Version
|
111
|
+
segments:
|
112
|
+
- 0
|
113
|
+
- 5
|
114
|
+
- 2
|
83
115
|
version: 0.5.2
|
84
|
-
|
116
|
+
type: :runtime
|
117
|
+
version_requirements: *id007
|
85
118
|
- !ruby/object:Gem::Dependency
|
86
|
-
name:
|
87
|
-
|
88
|
-
|
89
|
-
version_requirements: !ruby/object:Gem::Requirement
|
119
|
+
name: json
|
120
|
+
prerelease: false
|
121
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
90
122
|
requirements:
|
91
123
|
- - ">="
|
92
124
|
- !ruby/object:Gem::Version
|
93
|
-
|
94
|
-
|
125
|
+
segments:
|
126
|
+
- 1
|
127
|
+
- 2
|
128
|
+
- 3
|
129
|
+
version: 1.2.3
|
130
|
+
type: :runtime
|
131
|
+
version_requirements: *id008
|
95
132
|
- !ruby/object:Gem::Dependency
|
96
133
|
name: compass
|
97
|
-
|
98
|
-
|
99
|
-
version_requirements: !ruby/object:Gem::Requirement
|
134
|
+
prerelease: false
|
135
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
100
136
|
requirements:
|
101
137
|
- - ">="
|
102
138
|
- !ruby/object:Gem::Version
|
139
|
+
segments:
|
140
|
+
- 0
|
141
|
+
- 8
|
142
|
+
- 17
|
103
143
|
version: 0.8.17
|
104
|
-
|
144
|
+
type: :development
|
145
|
+
version_requirements: *id009
|
105
146
|
- !ruby/object:Gem::Dependency
|
106
147
|
name: nokogiri
|
107
|
-
|
108
|
-
|
109
|
-
version_requirements: !ruby/object:Gem::Requirement
|
148
|
+
prerelease: false
|
149
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
110
150
|
requirements:
|
111
151
|
- - ">="
|
112
152
|
- !ruby/object:Gem::Version
|
153
|
+
segments:
|
154
|
+
- 1
|
155
|
+
- 4
|
156
|
+
- 1
|
113
157
|
version: 1.4.1
|
114
|
-
|
158
|
+
type: :development
|
159
|
+
version_requirements: *id010
|
115
160
|
- !ruby/object:Gem::Dependency
|
116
161
|
name: rack-test
|
117
|
-
|
118
|
-
|
119
|
-
version_requirements: !ruby/object:Gem::Requirement
|
162
|
+
prerelease: false
|
163
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
120
164
|
requirements:
|
121
165
|
- - ">="
|
122
166
|
- !ruby/object:Gem::Version
|
167
|
+
segments:
|
168
|
+
- 0
|
169
|
+
- 5
|
170
|
+
- 3
|
123
171
|
version: 0.5.3
|
124
|
-
|
172
|
+
type: :development
|
173
|
+
version_requirements: *id011
|
125
174
|
- !ruby/object:Gem::Dependency
|
126
175
|
name: cucumber
|
127
|
-
|
128
|
-
|
129
|
-
version_requirements: !ruby/object:Gem::Requirement
|
176
|
+
prerelease: false
|
177
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
130
178
|
requirements:
|
131
179
|
- - ">="
|
132
180
|
- !ruby/object:Gem::Version
|
181
|
+
segments:
|
182
|
+
- 0
|
183
|
+
- 6
|
184
|
+
- 3
|
133
185
|
version: 0.6.3
|
134
|
-
|
186
|
+
type: :development
|
187
|
+
version_requirements: *id012
|
135
188
|
- !ruby/object:Gem::Dependency
|
136
189
|
name: rcov
|
137
|
-
|
138
|
-
|
139
|
-
version_requirements: !ruby/object:Gem::Requirement
|
190
|
+
prerelease: false
|
191
|
+
requirement: &id013 !ruby/object:Gem::Requirement
|
140
192
|
requirements:
|
141
193
|
- - ">="
|
142
194
|
- !ruby/object:Gem::Version
|
195
|
+
segments:
|
196
|
+
- 0
|
197
|
+
- 9
|
198
|
+
- 8
|
143
199
|
version: 0.9.8
|
144
|
-
|
200
|
+
type: :development
|
201
|
+
version_requirements: *id013
|
145
202
|
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"
|
146
203
|
email: deltacloud-users@lists.fedorahosted.org
|
147
204
|
executables:
|
@@ -153,11 +210,10 @@ extra_rdoc_files:
|
|
153
210
|
files:
|
154
211
|
- Rakefile
|
155
212
|
- config.ru
|
156
|
-
- server.rb
|
157
213
|
- deltacloud.rb
|
214
|
+
- server.rb
|
158
215
|
- support/fedora/deltacloudd
|
159
216
|
- support/fedora/rubygem-deltacloud-core.spec
|
160
|
-
- lib/drivers.rb
|
161
217
|
- lib/deltacloud/base_driver.rb
|
162
218
|
- lib/deltacloud/base_driver/base_driver.rb
|
163
219
|
- lib/deltacloud/base_driver/features.rb
|
@@ -173,30 +229,43 @@ files:
|
|
173
229
|
- lib/deltacloud/drivers/rackspace/rackspace_client.rb
|
174
230
|
- lib/deltacloud/drivers/rackspace/rackspace_driver.rb
|
175
231
|
- lib/deltacloud/drivers/rhevm/rhevm_driver.rb
|
176
|
-
- lib/deltacloud/drivers/terremark/terremark_driver.rb
|
177
232
|
- lib/deltacloud/drivers/rimuhosting/rimuhosting_client.rb
|
178
233
|
- lib/deltacloud/drivers/rimuhosting/rimuhosting_driver.rb
|
234
|
+
- lib/deltacloud/drivers/terremark/terremark_driver.rb
|
179
235
|
- lib/deltacloud/hardware_profile.rb
|
180
236
|
- lib/deltacloud/helpers.rb
|
181
237
|
- lib/deltacloud/helpers/application_helper.rb
|
182
238
|
- lib/deltacloud/helpers/conversion_helper.rb
|
183
239
|
- lib/deltacloud/helpers/hardware_profiles_helper.rb
|
240
|
+
- lib/deltacloud/method_serializer.rb
|
184
241
|
- lib/deltacloud/models/base_model.rb
|
185
|
-
- lib/deltacloud/models/instance.rb
|
186
242
|
- lib/deltacloud/models/image.rb
|
243
|
+
- lib/deltacloud/models/instance.rb
|
244
|
+
- lib/deltacloud/models/instance_profile.rb
|
187
245
|
- lib/deltacloud/models/realm.rb
|
188
246
|
- lib/deltacloud/models/storage_snapshot.rb
|
189
247
|
- lib/deltacloud/models/storage_volume.rb
|
190
|
-
- lib/deltacloud/models/instance_profile.rb
|
191
248
|
- lib/deltacloud/state_machine.rb
|
192
249
|
- lib/deltacloud/validation.rb
|
193
|
-
- lib/
|
250
|
+
- lib/drivers.rb
|
251
|
+
- lib/sinatra/accept_media_types.rb
|
194
252
|
- lib/sinatra/lazy_auth.rb
|
195
253
|
- lib/sinatra/rabbit.rb
|
196
254
|
- lib/sinatra/respond_to.rb
|
197
255
|
- lib/sinatra/static_assets.rb
|
198
256
|
- lib/sinatra/url_for.rb
|
199
|
-
- lib/
|
257
|
+
- lib/deltacloud/drivers/mock/data/images/img1.yml
|
258
|
+
- lib/deltacloud/drivers/mock/data/images/img2.yml
|
259
|
+
- lib/deltacloud/drivers/mock/data/images/img3.yml
|
260
|
+
- lib/deltacloud/drivers/mock/data/instances/inst0.yml
|
261
|
+
- lib/deltacloud/drivers/mock/data/instances/inst1.yml
|
262
|
+
- lib/deltacloud/drivers/mock/data/instances/inst2.yml
|
263
|
+
- lib/deltacloud/drivers/mock/data/storage_snapshots/snap1.yml
|
264
|
+
- lib/deltacloud/drivers/mock/data/storage_snapshots/snap2.yml
|
265
|
+
- lib/deltacloud/drivers/mock/data/storage_snapshots/snap3.yml
|
266
|
+
- lib/deltacloud/drivers/mock/data/storage_volumes/vol1.yml
|
267
|
+
- lib/deltacloud/drivers/mock/data/storage_volumes/vol2.yml
|
268
|
+
- lib/deltacloud/drivers/mock/data/storage_volumes/vol3.yml
|
200
269
|
- views/accounts/index.html.haml
|
201
270
|
- views/accounts/show.html.haml
|
202
271
|
- views/api/show.html.haml
|
@@ -213,34 +282,36 @@ files:
|
|
213
282
|
- views/errors/backend_error.xml.haml
|
214
283
|
- views/errors/validation_failure.html.haml
|
215
284
|
- views/errors/validation_failure.xml.haml
|
285
|
+
- views/errors/not_found.html.haml
|
286
|
+
- views/errors/not_found.xml.haml
|
216
287
|
- views/hardware_profiles/index.html.haml
|
217
|
-
- views/hardware_profiles/show.html.haml
|
218
288
|
- views/hardware_profiles/index.xml.haml
|
289
|
+
- views/hardware_profiles/show.html.haml
|
219
290
|
- views/hardware_profiles/show.xml.haml
|
220
291
|
- views/images/index.html.haml
|
221
|
-
- views/images/show.html.haml
|
222
292
|
- views/images/index.xml.haml
|
293
|
+
- views/images/show.html.haml
|
223
294
|
- views/images/show.xml.haml
|
224
295
|
- views/instance_states/show.html.haml
|
225
296
|
- views/instance_states/show.xml.haml
|
226
297
|
- views/instances/index.html.haml
|
298
|
+
- views/instances/index.xml.haml
|
227
299
|
- views/instances/new.html.haml
|
228
300
|
- views/instances/show.html.haml
|
229
|
-
- views/instances/index.xml.haml
|
230
301
|
- views/instances/show.xml.haml
|
231
302
|
- views/layout.html.haml
|
232
303
|
- views/realms/index.html.haml
|
233
|
-
- views/realms/show.html.haml
|
234
304
|
- views/realms/index.xml.haml
|
305
|
+
- views/realms/show.html.haml
|
235
306
|
- views/realms/show.xml.haml
|
236
307
|
- views/root/index.html.haml
|
237
308
|
- views/storage_snapshots/index.html.haml
|
238
|
-
- views/storage_snapshots/show.html.haml
|
239
309
|
- views/storage_snapshots/index.xml.haml
|
310
|
+
- views/storage_snapshots/show.html.haml
|
240
311
|
- views/storage_snapshots/show.xml.haml
|
241
312
|
- views/storage_volumes/index.html.haml
|
242
|
-
- views/storage_volumes/show.html.haml
|
243
313
|
- views/storage_volumes/index.xml.haml
|
314
|
+
- views/storage_volumes/show.html.haml
|
244
315
|
- views/storage_volumes/show.xml.haml
|
245
316
|
- views/instance_states/show.gv.erb
|
246
317
|
- public/favicon.ico
|
@@ -269,25 +340,29 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
269
340
|
requirements:
|
270
341
|
- - ">="
|
271
342
|
- !ruby/object:Gem::Version
|
343
|
+
segments:
|
344
|
+
- 1
|
345
|
+
- 8
|
346
|
+
- 1
|
272
347
|
version: 1.8.1
|
273
|
-
version:
|
274
348
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
275
349
|
requirements:
|
276
350
|
- - ">="
|
277
351
|
- !ruby/object:Gem::Version
|
352
|
+
segments:
|
353
|
+
- 0
|
278
354
|
version: "0"
|
279
|
-
version:
|
280
355
|
requirements: []
|
281
356
|
|
282
357
|
rubyforge_project:
|
283
|
-
rubygems_version: 1.3.
|
358
|
+
rubygems_version: 1.3.6
|
284
359
|
signing_key:
|
285
360
|
specification_version: 3
|
286
361
|
summary: Deltacloud REST API
|
287
362
|
test_files:
|
288
|
-
- tests/
|
363
|
+
- tests/realms_test.rb
|
289
364
|
- tests/images_test.rb
|
290
365
|
- tests/instances_test.rb
|
291
|
-
- tests/
|
292
|
-
- tests/
|
293
|
-
- tests/
|
366
|
+
- tests/api_test.rb
|
367
|
+
- tests/hardware_profiles_test.rb
|
368
|
+
- tests/instance_states_test.rb
|