# File lib/deltacloud/drivers/google/google_driver.rb, line 51 def create_bucket(credentials, name, opts={}) google_client = new_client(credentials) safely do bucket_location = opts['location'] if (bucket_location && bucket_location.size > 0) res = google_client.put_bucket(name, {"LocationConstraint" => opts['location']}) else google_client.put_bucket(name) end #res.status should be eql 200 - but fog will explode if not all ok... Bucket.new({ :id => name, :name => name, :size => 0, :blob_list => [] }) end end