
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
= Rackspace Cloud Files
== Description
This is a Ruby interface into the Rackspace[http://rackspace.com/] {Cloud Files}[http://www.rackspacecloud.com/cloud_hosting_products/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.
== Upgrade Gotchas
As of gem version 1.4.8, the connection method has changed from positional arguments to a hash of options. This is the new style:
cf = CloudFiles::Connection.new(:username => "MY_USERNAME", :api_key => "MY_API_KEY")
This is the old style, which still works but is deprecated:
cf = CloudFiles::Connection.new("MY_USERNAME","MY_API_KEY")
== Installation
This source is available on Github[http://github.com/rackspace/ruby-cloudfiles/] and the gem is available on Gemcutter[http://gemcutter.org/]. 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'
cf = CloudFiles::Connection.new(:username => "MY_USERNAME", :api_key => "MY_API_KEY")
cf = CloudFiles::Connection.new(:username => "MY_USERNAME", :api_key => "MY_API_KEY", :auth_url => CloudFiles::AUTH_UK)
cf = CloudFiles::Connection.new(:username => "MY_USERNAME", :api_key => "MY_API_KEY", :snet => true)
cf.containers => ["backup", "Books", "cftest", "test", "video", "webpics"]
container = cf.container('test')
container.count => 3
object = container.create_object 'filename.txt', false object.write file
container.objects => ["bigfile.txt", "new.txt", "test.txt"]
object = container.object('test.txt')
object.data => "This is test data"
== Authors
Initial work by Major Hayden major.hayden@rackspace.com
Subsequent work by H. Wade Minter minter@lunenburg.org and Dan Prince dan.prince@rackspace.com
== License
See COPYING for license information. Copyright (c) 2011, Rackspace US, Inc.
FAQs
Unknown package
We found that cloudfiles-sagamore demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.