Sha256: d36c293a275ccb6f15e4c5a601c3c4117cd7b7f8aa88c9a49cee901b7233e318
Contents?: true
Size: 462 Bytes
Versions: 3
Compression:
Stored size: 462 Bytes
Contents
#!/usr/bin/env ruby require File.join(File.dirname(__FILE__), 'object') require 'rexml/document' require 'pp' bucket_request = S3Lib.request(:get, 'spatten_syncdemo') bucket_doc = REXML::Document.new(bucket_request.read) first_object = REXML::XPath.match(bucket_doc, "//Contents").first # puts first_object puts "from bucket xml:" pp first_object.to_hash puts "from get on object:" object = S3Lib.request(:get, 'spatten_syncdemo/flowers.jpg') pp object.meta
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
spatten-s3lib-0.0.1 | lib/object_from_bucket_test.rb |
s3lib-0.1.1 | lib/object_from_bucket_test.rb |
s3lib-0.1.0 | lib/object_from_bucket_test.rb |