Skip to content

Commit 087aad3

Browse files
committed
Add legacy constant names explicitly, fixes fog#34
1 parent f8dcccd commit 087aad3

File tree

6 files changed

+13
-3
lines changed

6 files changed

+13
-3
lines changed

lib/fog/rackspace.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module Rackspace
3636
autoload :CDNV2, File.expand_path('../rackspace/cdn_v2', __FILE__)
3737
autoload :Compute, File.expand_path('../rackspace/compute', __FILE__)
3838
autoload :ComputeV2, File.expand_path('../rackspace/compute_v2', __FILE__)
39-
autoload :Database, File.expand_path('../rackspace/databases', __FILE__)
39+
autoload :Databases, File.expand_path('../rackspace/databases', __FILE__)
4040
autoload :DNS, File.expand_path('../rackspace/dns', __FILE__)
4141
autoload :Identity, File.expand_path('../rackspace/identity', __FILE__)
4242
autoload :LoadBalancers, File.expand_path('../rackspace/load_balancers', __FILE__)
@@ -50,9 +50,9 @@ module Rackspace
5050
service(:auto_scale, 'AutoScale')
5151
service(:block_storage, 'BlockStorage')
5252
service(:cdn, 'CDN')
53-
service(:cdn_v2, 'CDN v2')
53+
service(:cdn_v2, 'CDNV2')
5454
service(:compute, 'Compute')
55-
service(:compute_v2, 'Compute v2')
55+
service(:compute_v2, 'ComputeV2')
5656
service(:dns, 'DNS')
5757
service(:storage, 'Storage')
5858
service(:load_balancers, 'LoadBalancers')

lib/fog/rackspace/cdn.rb

+2
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,5 @@ def authenticate(options={})
196196
end
197197
end
198198
end
199+
200+
Fog::Rackspace::CDN = Fog::CDN::Rackspace

lib/fog/rackspace/compute.rb

+2
Original file line numberDiff line numberDiff line change
@@ -254,3 +254,5 @@ def authenticate_v1(options)
254254
end
255255
end
256256
end
257+
258+
Fog::Rackspace::Compute = Fog::Compute::Rackspace

lib/fog/rackspace/compute_v2.rb

+2
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,5 @@ def authenticate_v1(options)
251251
end
252252
end
253253
end
254+
255+
Fog::Rackspace::ComputeV2 = Fog::Compute::RackspaceV2

lib/fog/rackspace/dns.rb

+2
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,5 @@ def authenticate(options={})
170170
end
171171
end
172172
end
173+
174+
Fog::Rackspace::DNS = Fog::DNS::Rackspace

lib/fog/rackspace/storage.rb

+2
Original file line numberDiff line numberDiff line change
@@ -463,3 +463,5 @@ def authenticate_v1(options)
463463
end
464464
end
465465
end
466+
467+
Fog::Rackspace::Storage = Fog::Storage::Rackspace

0 commit comments

Comments
 (0)