Class: Fog::Proxmox::Storage::Mock

Inherits:
Object
  • Object
show all
Defined in:
lib/fog/proxmox/storage.rb,
lib/fog/proxmox/storage/requests/list.rb,
lib/fog/proxmox/storage/requests/create.rb,
lib/fog/proxmox/storage/requests/upload.rb,
lib/fog/proxmox/storage/requests/list_appliances.rb,
lib/fog/proxmox/storage/requests/download_appliance.rb

Overview

class Mock download_appliance

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Mock

Returns a new instance of Mock.



43
44
45
46
47
48
49
50
51
52
53
# File 'lib/fog/proxmox/storage.rb', line 43

def initialize(options = {})
  @proxmox_uri = URI.parse(options[:proxmox_url])
  @proxmox_auth_method = options[:proxmox_auth_method]
  @proxmox_tokenid = options[:proxmox_tokenid]
  @proxmox_userid = options[:proxmox_userid]
  @proxmox_username = options[:proxmox_username]
  @proxmox_password = options[:proxmox_password]
  @proxmox_token = options[:proxmox_token]
  @proxmox_path = @proxmox_uri.path
  @config = options
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



41
42
43
# File 'lib/fog/proxmox/storage.rb', line 41

def config
  @config
end