-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
47 lines (30 loc) · 1.36 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
= Mosso Cloud Files
== Description
This is a Ruby interface into the Rackspace[http://rackspace.com/] {Mosso Cloud Files}[http://www.mosso.com/cloudfiles.jsp] 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.
== 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 <[email protected]>
Subsequent work by H. Wade Minter <[email protected]>
== License
See COPYING for license information.
Copyright (c) 2009, Rackspace US, Inc.