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

[openstack|storage] added missing mocks

This commit is contained in:
Sergio Rubio 2013-03-05 18:59:46 +01:00
parent ac9c0ceb40
commit 3b0f9f50a2

View file

@ -48,6 +48,7 @@ module Fog
require 'mime/types'
@openstack_api_key = options[:openstack_api_key]
@openstack_username = options[:openstack_username]
@path = '/v1/AUTH_1234'
end
def data
@ -57,6 +58,16 @@ module Fog
def reset_data
self.class.data.delete(@openstack_username)
end
def change_account(account)
@original_path ||= @path
version_string = @original_path.split('/')[1]
@path = "/#{version_string}/#{account}"
end
def reset_account_name
@path = @original_path
end
end