CARVIEW |
Every repository with this icon (

Every repository with this icon (

Description: | Ruby API for Cloud Files edit |
Homepage: | www.rackspace.com edit |
Public Clone URL: |
git://github.com/rackspace/ruby-cloudfiles.git
Give this clone URL to anyone.
git clone git://github.com/rackspace/ruby-cloudfiles.git
|
Your Clone URL: |
Use this clone URL yourself.
git clone git@github.com:rackspace/ruby-cloudfiles.git
|
name | age | message | |
---|---|---|---|
![]() |
.gitignore | Wed Jan 28 07:18:48 -0800 2009 | Update for 1/28 API changes. [minter] |
![]() |
COPYING | Wed Mar 11 13:22:39 -0700 2009 | Licensing/copyright information. [minter] |
![]() |
Manifest | Wed Feb 04 12:48:11 -0800 2009 | Documentation enhancements. [minter] |
![]() |
README.rdoc | Wed Jul 29 12:57:57 -0700 2009 | Functions to set/test the CDN Log status. Repl... [minter] |
![]() |
Rakefile | Wed Jul 29 12:57:57 -0700 2009 | Functions to set/test the CDN Log status. Repl... [minter] |
![]() |
TODO | Wed Feb 04 18:36:46 -0800 2009 | Add StorageObject.save_to_filename convenience ... [minter] |
![]() |
cloudfiles.gemspec | Sat Aug 08 17:46:22 -0700 2009 | Gemspec for 1.4.0.0 [minter] |
![]() |
lib/ | Mon Aug 03 10:12:07 -0700 2009 | Bump API version to 1.4. [minter] |
![]() |
test/ | Thu Jul 30 11:01:00 -0700 2009 | Test updates. [minter] |
Rackspace Cloud Files
Description
This is a Ruby interface into the Rackspace Cloud 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 gem is available on Github. To install it, do
gem sources -a https://gems.github.com sudo gem install rackspace-cloudfiles
To use it in a Rails application, add the following information to your config/environment.rb
config.gem "rackspace-cloudfiles", :source => "https://gems.github.com", :lib => "cloudfiles"
Examples
See the class definitions for documentation on specific methods and operations.
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 © 2009, Rackspace US, Inc.