# File lib/deltacloud/drivers/azure/azure_driver.rb, line 105 def create_blob(credentials, bucket_id, blob_id, blob_data, opts={}) azure_connect(credentials) #insert azure-specific header for user metadata ... x-ms-meta-kEY = VALUE BlobHelper::rename_metadata_headers(opts, "x-ms-meta-") safely do #get a handle to the bucket in order to put there the_bucket = WAZ::Blobs::Container.find(bucket_id) the_bucket.store(blob_id, blob_data[:tempfile], blob_data[:type], opts) end Blob.new( { :id => blob_id, :bucket => bucket_id, :content_lengh => blob_data[:tempfile].length, :content_type => blob_data[:type], :last_modified => '', :user_metadata => opts.gsub_keys(/x-ms-meta-/,'') } ) end