Class: Fog::Terremark::Ecloud::Real

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

Instance Method Summary collapse

Methods included from Shared::Parser

#parse

Methods included from Shared::Real

#add_internet_service, #add_node_service, #addresses, #create_internet_service, #delete_internet_service, #delete_node_service, #delete_public_ip, #delete_vapp, #deploy_vapp, #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, #instantiate_vapp_template, #networks, #power_off, #power_on, #power_reset, #power_shutdown, #servers, #tasks, #vdcs

Methods included from Shared::Common

#default_organization_id

Constructor Details

#initialize(options = {}) ⇒ Real

Returns a new instance of Real.



45
46
47
48
49
50
51
52
53
# File 'lib/fog/terremark/ecloud.rb', line 45

def initialize(options={})
  @terremark_password = options[:terremark_ecloud_password]
  @terremark_username = options[:terremark_ecloud_username]
  @host   = options[:host]   || Fog::Terremark::Ecloud::Defaults::HOST
  @path   = options[:path]   || Fog::Terremark::Ecloud::Defaults::PATH
  @port   = options[:port]   || Fog::Terremark::Ecloud::Defaults::PORT
  @scheme = options[:scheme] || Fog::Terremark::Ecloud::Defaults::SCHEME
  @connection = Fog::Connection.new("#{@scheme}://#{@host}:#{@port}", options[:persistent])
end