0.0
No release in over a year
File manager, access S3 or local
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.16.2
>= 0
>= 0

Runtime

 Project Readme

File::Manager

Build Status Code Climate

File manager local or S3

Installation

Add this line to your application's Gemfile:

gem 'file-manager'

And then execute:

$ bundle

Or install it yourself as:

$ gem install file-manager

Usage

require 'file_manager_factory'

file_managers = { xml_data: { type: 'local', root_path:'/Users/franciscobarroso/reports/' }, txt: { type: 'local', root_path:'/Users/franciscobarroso/reports/' } }

factory = FileManagerFactory.new(file_managers)

file_manager_txt = factory.create(:txt)

file_manager_txt.save_file('babau.txt', 'buuuu')

Testing

export AWS_ACCESS_KEY_ID='' # with your keys
export AWS_SECRET_ACCESS_KEY=''
bundle exec rake

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