Method: Deltacloud::Drivers::Eucalyptus::EucalyptusDriver#new_client
- Defined in:
- lib/deltacloud/drivers/eucalyptus/eucalyptus_driver.rb
#new_client(credentials, type = :ec2) ⇒ Object
182 183 184 185 186 187 188 189 190 191 192 |
# File 'lib/deltacloud/drivers/eucalyptus/eucalyptus_driver.rb', line 182 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 |