No commit activity in last 3 years
No release in over 3 years
A dragonfly datastore adapter for saving your images on remote stores using scp and ssh.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 2.6.0

Runtime

>= 0.9
= 1.1.2
= 2.6.8
 Project Readme

Dragonfly::ScpDataStore

A dragonfly datastore adaptar for saving your files on remote servers using Net::SCP and Net::SSH.

Installation

Drop this line to your application's Gemfile:

gem 'dragonfly-scp_data_store'

And then execute:

$ bundle

Or install it yourself as:

$ gem install dragonfly-scp_data_store

Usage

On your dragonfly initializer:

  app.configure do |c|
    c.datastore = Dragonfly::ScpDataStore::DataStore.new(
      host: ENV['CDN_SSH_HOST'], # This should be the host address of your remote server
      username: ENV['CDN_SSH_USERNAME'], # The username of your server
      password: ENV['CDN_SSH_PASSWORD'], # The password
      folder: ENV['CDN_FOLDER'], # The folder in which you're going to store your files
      base_url: ENV['CDN_BASE_URL'], # The url which you're going to retrieve your files from the server
    )
  end

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