Initial work by Major Hayden <rackspace at major.hayden.com>
Subsequent work by H. Wade Minter <minter@lunenburg.org> and Dan Prince <rackspace at dan.prince.com>
See COPYING for license information. Copyright (c) 2011, Rackspace US, Inc.
To begin reviewing the available methods and examples, peruse the README file, or begin by looking at documentation for the CloudFiles::Connection class.
The CloudFiles class is the base class. Not much of note happens here. To create a new CloudFiles connection, use the CloudFiles::Connection.new(:username => 'user_name', :api_key => 'api_key') method.
The new properly scoped exceptions.
# File lib/cloudfiles.rb, line 52 def self.escape(str) URI.encode(str) end
# File lib/cloudfiles.rb, line 48 def self.lines(str) (str.respond_to?(:lines) ? str.lines : str).to_a.map { |x| x.chomp } end