Skip to content

Instantly share code, notes, and snippets.

@johnnyhalife
Created October 17, 2009 23:40
Show Gist options
  • Save johnnyhalife/212486 to your computer and use it in GitHub Desktop.
Save johnnyhalife/212486 to your computer and use it in GitHub Desktop.
container = WAZ::Blobs::Container.find('copy-test')
container.nil?.should == false
container.store('blob', 'payload', 'plain/text')
container.public_access = true
container.public_access?.should == true
blob = container['blob']
blob.nil?.should == false
copy = blob.copy('copy-test/blob-copy')
copy.nil?.should == false
copy.value.should == blob.value
blob_copy = container['blob-copy']
blob_copy.nil?.should == false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment