Public
Public is a Ruby command-line tool for quickly copying files to your public Dropbox folder.
Installation
Add this line to your application's Gemfile:
gem 'public'
And then execute:
$ bundle
Or install it yourself as:
$ gem install public
Usage
Run the command by itself to generate a configuration file:
> public
This will create ~/.public_gem
, where you can set your Dropbox ID:
dropbox_user_id: CHANGE_ME
Your Dropbox ID can be found in a URL from your public folder:
https://dl.dropboxusercontent.com/u/YOUR_ID/foobar
Once you change this, you can then run public
with a file (or files) as the
argument to copy them to your Public folder and your clipboard.
> public foobar.txt
> public barbaz.txt foobaz.txt
Contributing
- Fork it
- 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 new Pull Request