Sha256: f9dfbd85b3b981b2e106f31eea021814ac24004ba78ae3ddce660719361e3fe8

Contents?: true

Size: 1.77 KB

Versions: 7

Compression:

Stored size: 1.77 KB

Contents

= Rackspace Cloud Files

== Description

This is a Ruby interface into the Rackspace[http://rackspace.com/] {Cloud Files}[http://www.rackspacecloud.com/cloud_hosting_products/files] service. Cloud Files is reliable, scalable and affordable web-based storage hosting for backing up and archiving all your static content.  Cloud Files is the first and only cloud service that leverages a tier one CDN provider to create such an easy and complete storage-to-delivery solution for media content.

== Installation

This source is available on Github[http://github.com/rackspace/ruby-cloudfiles/] and the gem is available on Gemcutter[http://gemcutter.org/].  To install it, do

  gem sources -a http://gemcutter.org/
  
  sudo gem install cloudfiles
  
To use it in a Rails application, add the following information to your config/environment.rb

  config.gem "cloudfiles"
  

== Examples

See the class definitions for documentation on specific methods and operations.

  require 'rubygems'
  require 'cloudfiles'

  # Log into the Cloud Files system
  cf = CloudFiles::Connection.new(USERNAME, API_KEY)

  # Get a listing of all containers under this account
  cf.containers
  => ["backup", "Books", "cftest", "test", "video", "webpics"]

  # Access a specific container
  container = cf.container('test')

  # See how many objects are under this container
  container.count
  => 3

  # List the objects
  container.objects
  => ["bigfile.txt", "new.txt", "test.txt"]

  # Select an object
  object = container.object('test.txt')

  # Get that object's data
  object.data
  => "This is test data"

== Authors

Initial work by Major Hayden <major.hayden@rackspace.com>

Subsequent work by H. Wade Minter <wade.minter@rackspace.com>

== License

See COPYING for license information.
Copyright (c) 2009, Rackspace US, Inc.

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cloudfiles-1.4.7 README.rdoc
cloudfiles-1.4.6 README.rdoc
cloudfiles-1.4.5 README.rdoc
cloudfiles-1.4.4 README.rdoc
cloudfiles-1.4.3 README.rdoc
cloudfiles-1.4.2 README.rdoc
cloudfiles-1.4.1 README.rdoc