github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

rackspace / ruby-cloudfiles

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 60
    • 5
  • Source
  • Commits
  • Network (5)
  • Issues (1)
  • Downloads (12)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (12)
    • 1.4.5
    • 1.4.4
    • 1.4.3
    • 1.4.2
    • 1.4.1
    • 1.4.0.0
    • 1.3.0.7
    • 1.3.0.6
    • 1.3.0.5
    • 1.3.0.4
    • 1.3.0.3
    • 1.3.0.2
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Ruby API for Cloud Files — Read more

  cancel

www.rackspace.com

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Fix hostname. 
minter (author)
Tue Feb 02 08:52:27 -0800 2010
commit  40f95783a3addec8bc2c548a9e7360df87b8e993
tree    5656dea6283b0697f55cd80aaf11c5125e53f40f
parent  cf32ec2f9ca641233e1871d1197a956ea91ecca1
ruby-cloudfiles /
name age
history
message
file .gitignore Thu Oct 08 12:53:16 -0700 2009 Move ge hosting to Gemcutter. [minter]
file COPYING Wed Mar 11 13:22:39 -0700 2009 Licensing/copyright information. [minter]
file Manifest Wed Feb 04 12:48:11 -0800 2009 Documentation enhancements. [minter]
file README.rdoc Mon Oct 19 18:37:20 -0700 2009 Really point to gemcutter, not rubyforge. [minter]
file Rakefile Tue Feb 02 08:45:52 -0800 2010 Bump version to 1.4.5 to release updates. [minter]
file TODO Wed Feb 04 18:36:46 -0800 2009 Add StorageObject.save_to_filename convenience ... [minter]
file VERSION Tue Feb 02 08:45:52 -0800 2010 Bump version to 1.4.5 to release updates. [minter]
file cloudfiles.gemspec Tue Feb 02 08:45:52 -0800 2010 Bump version to 1.4.5 to release updates. [minter]
directory lib/ Tue Feb 02 08:52:27 -0800 2010 Fix hostname. [minter]
directory test/ Fri Nov 13 08:41:05 -0800 2009 Fix bug with StorageObject data getting chomped... [minter]
README.rdoc

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.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server