# File lib/deltacloud/drivers/eucalyptus/eucalyptus_driver.rb, line 129 def new_client(credentials, type = :ec2) klass = case type when :ec2 then Aws::Ec2 when :s3 then Aws::S3 when :elb then raise Deltacloud::BackendError.new(500, "Loadbalancer", "Loadbalancer not supported in Eucalyptus", "") end klass.new(credentials.user, credentials.password, endpoint_for_service(type)) end