Parent

Included Modules

Class/Module Index [+]

Quicksearch

Fog::Storage::HP::Mock

Public Class Methods

acls(type) click to toggle source
# File lib/fog/hp/storage.rb, line 187
def self.acls(type)
  type
end
data() click to toggle source
# File lib/fog/hp/storage.rb, line 191
def self.data
  @data ||= Hash.new do |hash, key|
    hash[key] = {
      :acls => {
        :container => {},
        :object => {}
      },
      :containers => {}
    }
    end
end
new(options={}) click to toggle source
# File lib/fog/hp/storage.rb, line 207
def initialize(options={})
  require 'mime/types'
  # deprecate hp_account_id
  if options[:hp_account_id]
    Fog::Logger.deprecation(":hp_account_id is deprecated, please use :hp_access_key instead.")
    @hp_access_key = options.delete(:hp_account_id)
  end
  @hp_access_key = options[:hp_access_key]
  unless @hp_access_key
    raise ArgumentError.new("Missing required arguments: hp_access_key. :hp_account_id is deprecated, please use :hp_access_key instead.")
  end
  @hp_secret_key = options[:hp_secret_key]
  @hp_tenant_id = options[:hp_tenant_id]
end
reset() click to toggle source
# File lib/fog/hp/storage.rb, line 203
def self.reset
  @data = nil
end

Public Instance Methods

data() click to toggle source
# File lib/fog/hp/storage.rb, line 222
def data
  self.class.data[@hp_access_key]
end
reset_data() click to toggle source
# File lib/fog/hp/storage.rb, line 226
def reset_data
  self.class.data.delete(@hp_access_key)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.