1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[openstack|storage] Added storage service to lib/fog/bin/openstack.rb

This commit is contained in:
Sergio Rubio 2013-01-23 20:54:33 +01:00
parent 433985bfee
commit e82ad3c07d

View file

@ -9,6 +9,8 @@ class OpenStack < Fog::Bin
Fog::Identity::OpenStack Fog::Identity::OpenStack
when :network when :network
Fog::Network::OpenStack Fog::Network::OpenStack
when :storage
Fog::Storage::OpenStack
else else
raise ArgumentError, "Unrecognized service: #{key}" raise ArgumentError, "Unrecognized service: #{key}"
end end
@ -26,6 +28,9 @@ class OpenStack < Fog::Bin
when :network when :network
Fog::Logger.warning("OpenStack[:network] is not recommended, use Network[:openstack] for portability") Fog::Logger.warning("OpenStack[:network] is not recommended, use Network[:openstack] for portability")
Fog::Network.new(:provider => 'OpenStack') Fog::Network.new(:provider => 'OpenStack')
when :storage
Fog::Logger.warning("OpenStack[:storage] is not recommended, use Storage[:openstack] for portability")
Fog::Network.new(:provider => 'OpenStack')
else else
raise ArgumentError, "Unrecognized service: #{key.inspect}" raise ArgumentError, "Unrecognized service: #{key.inspect}"
end end