Project

s3_dir

0.0
No commit activity in last 3 years
No release in over 3 years
Upload a directory to AWS S3
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

~> 1.17.0
~> 0.1.3
 Project Readme

S3Dir

Quickly upload a directory and its contents to s3.

Installation

Add this line to your application's Gemfile:

gem 's3_dir'

And then execute:

$ bundle

You'll need to configure your fog AWS credentials in ~/.fog:

:aws_credentials:
  :aws_access_key_id: AWS_ACCESS_KEY
  :aws_secret_access_key: AWS_SECRET_ACCESS_KEY

Usage

require 's3_dir'

path = '/path/to/upload'
bucket = 'mybucket'
S3Dir.upload(path, bucket, credential: :aws_credentials)

Configuration Options

credential default ENV['FOG_CREDENTIAL'] Namespace for AWS credentials in the .fog file

private default false Setting private to true will make the bucket and all of its contents not public.

Contributing

  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