Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

ianyamey/carrierwave-truevault

Repository files navigation

Carrierwave::Truevault

Adds TrueVault support to CarrierWave

Installation

Add this line to your application's Gemfile:

gem 'carrierwave-truevault', github: 'ianyamey/carrierwave-truevault'

And then execute:

$ bundle

Usage

  • Create a new vault from your TrueVault console

  • Add a configuration block in your config/initializers/carrierwave.rb file.

CarrierWave.configure do |config|
  config.truevault_api_key  = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
  config.truevault_vault_id = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
end
  • Set your uploader to use the truevault storage engine
class SecureFileUploader < CarrierWave::Uploader::Base
  storage :truevault
end

Acknowledgements

  • This work was inspired by @codemancode and his gem, which is based on HTTParty.

Contributing

  1. Fork it ( https://github.com/ianyamey/carrierwave-truevault/fork )
  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 a new Pull Request

About

HIPAA-compliant CarrierWave uploads to TrueVault

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages