No release in over 3 years
Low commit activity in last 3 years
Allows file upload to Azure with the officail sdk
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 3

Runtime

 Project Readme

Carrierwave::Azure

Windows Azure blob storage support for CarrierWave

Installation

Add this line to your application's Gemfile:

gem 'carrierwave-azure'

And then execute:

$ bundle

Usage

First configure CarrierWave with your Azure storage credentials

see Azure/azure-sdk-for-ruby

CarrierWave.configure do |config|
  config.azure_storage_account_name = 'YOUR STORAGE ACCOUNT NAME'
  config.azure_storage_access_key = 'YOUR STORAGE ACCESS KEY'
  config.azure_storage_blob_host = 'YOUR STORAGE BLOB HOST' # optional
  config.azure_container = 'YOUR CONTAINER NAME'
  config.asset_host = 'YOUR CDN HOST' # optional
end

And then in your uploader, set the storage to :azure

class ExampleUploader < CarrierWave::Uploader::Base
  storage :azure
end

Contributing

In order to run the integration specs you will need to configure some environment variables. A sample file is provided as spec/environment.rb.sample. Copy it over and plug in the appropriate values.

cp spec/environment.rb.sample spec/environment.rb
  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request