No commit activity in last 3 years
No release in over 3 years
A store for carrierwave that uses swift. NightcrawlerSwift client is used for authenication, list and store operations.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.9
~> 10.0

Runtime

 Project Readme

Carrierwave Nightcrawler Swift

This gem is a Carrierwave store for Swift. This library uses nightcrawler_swift for swift operations.

Installation

Add this line to your application's Gemfile:

gem 'carrierwave-nightcrawler-swift'

And then execute:

$ bundle

Or install it yourself as:

$ gem install carrierwave-nightcrawler-swift

Usage

You should configure the client.

NightcrawlerSwift.configure({
  :bucket=>"container-name",
  :tenant_name=>"tenant-name",
  :username=>"user",
  :password=>"some-secret-password",
  :auth_url=>"https://your-swift-server.com/v2.0/tokens",
  :verify_ssl=>false
})

Set the storage to be storage Carrierwave::Nightcrawler::Swift::Storage. .

class AvatarUploader < CarrierWave::Uploader::Base
  :storage => Carrierwave::Nightcrawler::Swift::Storage
end