Paperclip Swift Swauth
This gem is a Paperclip store for OpenStack Swift. This is different from the paperclip-swift library in the authentication. This library uses swauth for authentication.
Installation
gem install paperclip-swift-swauth
Usage
You should specify the following variables in your environment. We don't like storing passwords in the plain.
export SWIFT_USER="user"
export SWIFT_PASSWORD="some-secret-password"
export SWIFT_URL="https://your-swift-server.com"
export SWIFT_TENANT="tenant-name"
export SWIFT_CONTAINER="container-name"
Set the storage to be swift_swauth. The usual Paperclip configuration should be applicable.
class User < ActiveRecord::Base
has_attached_file :avatar,
:storage => :swift_swauth
end
License
Apache 2.0. See LICENSE for details.