rackspace / ruby-cloudfiles
- Source
- Commits
- Network (5)
- Issues (1)
- Downloads (12)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Thu Oct 08 12:53:16 -0700 2009 | |
| |
COPYING | Wed Mar 11 13:22:39 -0700 2009 | |
| |
Manifest | Wed Feb 04 12:48:11 -0800 2009 | |
| |
README.rdoc | Mon Oct 19 18:37:20 -0700 2009 | |
| |
Rakefile | Tue Feb 02 08:45:52 -0800 2010 | |
| |
TODO | Wed Feb 04 18:36:46 -0800 2009 | |
| |
VERSION | Tue Feb 02 08:45:52 -0800 2010 | |
| |
cloudfiles.gemspec | Tue Feb 02 08:45:52 -0800 2010 | |
| |
lib/ | Tue Feb 02 08:52:27 -0800 2010 | |
| |
test/ | Fri Nov 13 08:41:05 -0800 2009 |
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 source is available on Github and the gem is available on Gemcutter. 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 © 2009, Rackspace US, Inc.
