# Entangler [![Build Status](https://travis-ci.org/daveallie/entangler.svg?branch=master)](https://travis-ci.org/daveallie/entangler) Syncing tool used to keep a local and remote (over SSH) folder in sync. ## Installation ``` $ gem install entangler ``` ## Usage ```shell $ entangler master /some/base/path user@remote:/some/remote/path ``` ``` $ entangler -h Entangler v1.0.0.beta2 Usage: entangler master @: [options] entangler master [options] Options: -i, --ignore '.git' Ignore path when syncing, string is regex if surrounded by '/' All paths should be relative to the base sync directory. -p, --port PORT Overwrite the SSH port (usually 22) (doesn't do anything in slave mode) -v, --verbose Log Debug lines --version Show version number -h, --help Show this message ``` ### Ignoring files and folders If you specify a string, instead of a regex, it will match any path starting with that string, i.e. `-i '.git'` will ignore the `.git` folder and all its sub-directories. If you want to just ignore the the `.git` sub-directories but not the content in the git folder, you'll have to use regex. `-i '/^\.git(?:\/[^\/]+)+/'` will match all sub-directories of `.git/`, but not the files in `.git`. You can specify multiple `-i` or `--ignore` flags to ignore multiple paths. ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org). ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/daveallie/entangler. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct. ## License The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).