rshare
Tiny ruby app allowing for automated file sharing between friends using rsync
Installation
Add this line to your application's Gemfile:
gem 'rshare'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rshare
Usage
- Install rshare
Create a JSON configuration file for your repository:
{ "local": "~/public/", "remote": "[email protected]:~/public/", "options": [ "--bwidth=10", "--progress" ] }
The trailing slash tells rshare/rsync to sync the directory's contents instead of the directories themselves
Either pull files from the repository:
rshare pull conf.json
Or mark some of your repository's directories to be pushed by placing a
.rshare
file in them:touch path/to/shared/dir/.rshare
Then push your files:
rshare push conf.json
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request