# File lib/deltacloud/drivers/mock/mock_driver.rb, line 478 def update_blob_metadata(credentials, opts={}) check_credentials(credentials) blobfile = File::join("#{@storage_root}", "buckets", "blobs", "#{opts[:id]}.yml") safely do blob = YAML.load_file(blobfile) return false unless blob blob[:user_metadata] = opts['meta_hash'].gsub_keys('HTTP[-_]X[-_]Deltacloud[-_]Blobmeta[-_]', '') File.open(File::join("#{@storage_root}", "buckets", "blobs", "#{opts[:id]}.yml"), 'w' ) {|b| YAML.dump( blob, b )} end end