server/lib/deltacloud/drivers/terremark/terremark_driver.rb
#--
# NEW CLIENT
#--
#use supplied credentials to make a new client for talking to terremark
NEW CLIENT
use supplied credentials to make a new client for talking to terremark
NEW CLIENT use supplied credentials to make a new client for talking to terremark
def new_client(credentials)
    terremark_credentials = {:terremark_vcloud_username => "#{credentials.user}", :terremark_vcloud_password => "#{credentials.password}" }
    safely do
      terremark_client = Fog::Terremark::Vcloud.new(terremark_credentials)
      vdc_id = terremark_client.default_vdc_id
    end
    if (vdc_id.nil?)
       raise "AuthFailure"
    end
    terremark_client
  end
def new_client ( credentials ) terremark_credentials = { :terremark_vcloud_username => "#{credentials.user}" , :terremark_vcloud_password => "#{credentials.password}" } safely do terremark_client = Fog :: Terremark :: Vcloud . new ( terremark_credentials ) vdc_id = terremark_client . default_vdc_id end if ( vdc_id . nil? ) raise "AuthFailure" end terremark_client end
NEW CLIENT
use supplied credentials to make a new client for talking to terremark
NEW CLIENT use supplied credentials to make a new client for talking to terremark
#Fog constructor expecting  credentials[:terremark_password] and credentials[:terremark_username]
credentials
<not_specific>