Class: Fog::Terremark::Ecloud::Mock

Inherits:
Object
  • Object
show all
Includes:
Shared::Mock, Shared::Parser
Defined in:
lib/fog/terremark/ecloud.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.



61
62
63
64
65
66
67
# File 'lib/fog/terremark/ecloud.rb', line 61

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