dbox 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +4 -0
- data/README.md +10 -3
- data/VERSION +1 -1
- data/bin/dbox +7 -1
- data/dbox.gemspec +1 -1
- metadata +3 -3
data/History.txt
CHANGED
data/README.md
CHANGED
@@ -1,11 +1,18 @@
|
|
1
1
|
dbox
|
2
2
|
====
|
3
3
|
|
4
|
-
Dropbox integration made easy.
|
4
|
+
Dropbox integration made easy. This robust client gives you control over what, where, and when you sync with Dropbox.
|
5
5
|
|
6
|
-
|
6
|
+
Available as both a command-line client and a Ruby API.
|
7
7
|
|
8
|
-
|
8
|
+
```sh
|
9
|
+
$ cd /tmp
|
10
|
+
$ dbox clone Public
|
11
|
+
$ cd Public
|
12
|
+
$ echo "Hello World" > hello.txt
|
13
|
+
$ dbox sync
|
14
|
+
[INFO] Uploading /Public/hello2.txt
|
15
|
+
```
|
9
16
|
|
10
17
|
**IMPORTANT:** This is **not** an automated Dropbox client. It will exit after sucessfully pushing/pulling, so if you want regular updates, you can run it in cron, a loop, etc. If you do want to run it in a loop, take a look at [sample_polling_script.rb](http://github.com/kenpratt/dbox/blob/master/sample_polling_script.rb). You get deterministic control over what you want Dropbox to do and when you want it to happen.
|
11
18
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.1
|
data/bin/dbox
CHANGED
@@ -54,12 +54,18 @@ when "create", "clone"
|
|
54
54
|
|
55
55
|
res = Dbox.send(command, remote_path, local_path)
|
56
56
|
exit 1 if res[:failed].size > 0
|
57
|
-
when "pull", "push"
|
57
|
+
when "pull", "push"
|
58
58
|
# default to current directory
|
59
59
|
local_path = args[0] || "."
|
60
60
|
|
61
61
|
res = Dbox.send(command, local_path)
|
62
62
|
exit 1 if res[:failed].size > 0
|
63
|
+
when "sync"
|
64
|
+
# default to current directory
|
65
|
+
local_path = args[0] || "."
|
66
|
+
|
67
|
+
res = Dbox.sync(local_path)
|
68
|
+
exit 1 if res[:pull][:failed].size > 0 || res[:push][:failed].size > 0
|
63
69
|
when "move"
|
64
70
|
remote_path = args[0]
|
65
71
|
|
data/dbox.gemspec
CHANGED
metadata
CHANGED