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

  1. Install rshare
  2. 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

  3. Either pull files from the repository: rshare pull conf.json

  4. 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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request