Class: Fog::Terremark::Vcloud::Mock

Inherits:
Object
  • Object
show all
Includes:
Shared::Mock, Shared::Parser
Defined in:
lib/fog/terremark/vcloud.rb

Instance Method Summary collapse

Methods included from Shared::Parser

#parse

Methods included from Shared::Mock

#add_internet_service, #add_node_service, #addresses, #create_internet_service, #delete_internet_service, #delete_node_service, #delete_public_ip, #delete_vapp, #deploy_vapp, error_headers, #get_catalog, #get_catalog_item, #get_internet_services, #get_network, #get_network_ips, #get_node_services, #get_organization, #get_organizations, #get_public_ip, #get_public_ips, #get_task, #get_tasks_list, #get_vapp, #get_vapp_template, #get_vdc, headers, #instatiate_vapp_template, mock_data, #networks, #power_off, #power_on, #power_shutdown, #reset, #servers, status, #tasks, unathorized_status, #vdcs

Methods included from Shared::Common

#default_organization_id

Constructor Details

#initialize(option = {}) ⇒ Mock

Returns a new instance of Mock.



100
101
102
103
104
105
106
# File 'lib/fog/terremark/vcloud.rb', line 100

def initialize(option = {})
  super
  @base_url = Fog::Terremark::Vcloud::Defaults::SCHEME + "://" +
              Fog::Terremark::Vcloud::Defaults::HOST +
              Fog::Terremark::Vcloud::Defaults::PATH
  @data = self.class.data[:terremark_vcloud_username]
end