jonathanchrisp/yard-sftp

View on GitHub
README.md

Summary

Maintainability
Test Coverage
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/jonathanchrisp/yard-sftp/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
[![Gem Version](https://badge.fury.io/rb/yard-sftp.png)](http://badge.fury.io/rb/yard-sftp)
[![Code Climate](https://codeclimate.com/github/jonathanchrisp/yard-sftp.png)](https://codeclimate.com/github/jonathanchrisp/yard-sftp)

# yard-sftp
Move your new shiny yard documentation to a remote location with SFTP!

## Getting Started

In order to move your yard documentation to a remote location using SFTP you need to setup a local `.yardsftp` config file in your projects base directory. Please see the example below:

    --- !ruby/hash:SymbolHash
    :yard-sftp:
     host: 'example.com'
     base_path: '/home/public_html'
     base_folder: 'project_one'
     username: 'username'
     password: 'password'

Once this is all setup hit `yard` at your command line as you normally would and each file will uploaded via SFTP as they are created.

Please note that only the `doc` directory is uploaded! When files are being uploaded all files within the directories will removed if they are older than the current upload time.

### `.yardsftp` config file? Why?
I've added a new `.yardsftp` so different projects can be uploaded to custom remote locations. I did attempt to add these to the global `.yard/config` file but there was no way to distinguish custom remote file paths between different projects! Please email if you have a good suggestion!

## Tests
There are a no tests at present, this project was a proof of concept but these will be done at some point.

## Feedback
I would be more than happy to recieve feedback, please email me at: jonathan.chrisp@gmail.com