incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject Added support for drivers collection to client
Date Tue, 05 Apr 2011 09:12:35 GMT
Hi,

This patch extend client to support new drivers collection.
Few examples how it works:

client = DeltaCloud::new('mockuser', 'mockpassword', 'http://localhost:3001/api')

pp client.drivers[1].id => "ec2"
pp client.drivers[1].name => "EC2"
pp client.driver('ec2').providers => ["us-west-1", "ap-southeast-1", "eu-west-1", "us-east-1"]
pp client.driver('ec2').provider('us-west-1') => [{"s3"=>"s3-us-west-1.amazonaws.com"},
 {"elb"=>"elasticloadbalancing.us-west-1.amazonaws.com"}, {"ec2"=>"ec2.us-west-1.amazonaws.com"}]

  -- Michal


Mime
View raw message