# File lib/rudy/aws/ec2/volume.rb, line 51
51:       def create(size, zone, snapid=nil)
52:         opts = {
53:           :availability_zone => zone.to_s,
54:           :size => (size || 1).to_s
55:         }
56:       
57:         opts[:snapshot_id] = snapid if snapid
58:       
59:         # "status"=>"creating", 
60:         # "size"=>"1", 
61:         # "snapshotId"=>nil, 
62:         # "requestId"=>"d42ff744-48b5-4f47-a3f0-7aba57a13eb9", 
63:         # "availabilityZone"=>"us-east-1b", 
64:         # "createTime"=>"2009-03-17T20:10:48.000Z", 
65:         # "volumeId"=>"vol-48826421"
66:         vol = Rudy::AWS::EC2.execute_request({}) { @@ec2.create_volume(opts) }
67:       
68:         # TODO: use a waiter?
69:         #Rudy.waiter(1, 30) do
70:         #  ret = @@@ec2.volumes.available?(volume.awsid)
71:         #end
72:       
73:         reqid = vol['requestId']
74:         Volumes.from_hash(vol) || nil
75:       end