Tojour
Like AirDrop for the command line.
Make your computer available over Bonjour for someone to send you a file. Uses SSL sockets.
Installation
Install it yourself as:
$ gem install tojour
Usage
Let Someone Send you a File
On your machine, run the following to wait for a file. Assuming your username is
jbiebz
.
tojour -r jbiebz
Have your friend run the following to send you a file. Assuming the file you
want to send is located at some_file.txt
.
tojour -s some_file.txt jbiebz
Let Someone Pipe you a Log
Your friend wants to pipe you some data. On your machine, make your machine available over Bonjour.
tojour -i jbiebz
On their machine, run a command, and pipe the output to tojour
.
ruby -e 'loop { puts 'Wow!'; sleep 1 }' | tojour -o jbiebz
Get Help
List arguments you can pass to tojour
.
tojour
List People Waiting for Files
List all the people on your network waiting for files or logs.
tojour -l
Development
After checking out the repo, run bundle
to install dependencies. Then, run
bin/tojour
.
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
to create a git tag for the version, push git commits
and tags, and push the .gem
file to rubygems.org.
Contributing
- Fork it ( https://github.com/[my-github-username]/tojour/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request