Sha256: 50103a958c6a61561bcbb47dfbf13defdf5f27007836acb8589aefe6b4fc5f40

Contents?: true

Size: 482 Bytes

Versions: 1

Compression:

Stored size: 482 Bytes

Contents

#!/usr/bin/env ruby
require 'fog'

service = Fog::Storage.new({
    :provider             => 'rackspace',
    :rackspace_username   => ENV['RAX_USERNAME'],
    :rackspace_api_key    => ENV['RAX_API_KEY'],
    :rackspace_region     => ENV['RAX_REGION'],
    :rackspace_auth_url   => "#{ENV['RAX_AUTH_URL']}/v2.0"
})
# directory = service.directories.get ENV['TEST_DIRECTORY']
# directory.files.head_object ENV['TEST_FILE']
service.head_object ENV['TEST_DIRECTORY'], ENV['TEST_FILE']

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
polytrix-0.0.1 sdks/fog/challenges/get_object_metadata.rb