# File lib/fog/openstack/storage.rb, line 40 def self.data @data ||= Hash.new do |hash, key| hash[key] = {} end end
# File lib/fog/openstack/storage.rb, line 50 def initialize(options={}) @openstack_api_key = options[:openstack_api_key] @openstack_username = options[:openstack_username] @path = '/v1/AUTH_1234' end
# File lib/fog/openstack/storage.rb, line 46 def self.reset @data = nil end
# File lib/fog/openstack/storage.rb, line 64 def change_account(account) @original_path ||= @path version_string = @original_path.split('/')[1] @path = "/#{version_string}/#{account}" end
# File lib/fog/openstack/storage.rb, line 56 def data self.class.data[@openstack_username] end
# File lib/fog/openstack/storage.rb, line 70 def reset_account_name @path = @original_path end
# File lib/fog/openstack/storage.rb, line 60 def reset_data self.class.data.delete(@openstack_username) end