bin/dbox in dbox-0.6.11 vs bin/dbox in dbox-0.6.12
- old
+ new
@@ -14,10 +14,12 @@
clone <remote_path> [<local_path>] Clone an existing Dropbox folder
pull [<local_path>] Pull chonges from Dropbox
push [<local_path>] Push changes to Dropbox
sync [<local_path>] Sync changes to Dropbox
move <new_remote_path> [<local_path>] Move the remote Dropbox folder to a new location
+ delete <remote_path> [<local_path>] Delete a Dropbox folder (local path optional, it will be deleted too if provided)
+ clone_or_pull <remote_path> [<local_path>] Clone an existing Dropbox folder, or pull if it already exists locally
Environment varables needed for everything:
export DROPBOX_APP_KEY=cmlrrjd3j0gbend
export DROPBOX_APP_SECRET=uvuulp75xf9jffl
@@ -38,12 +40,12 @@
# execute the command
case command
when "authorize"
Dbox.authorize
-when "create", "clone"
+when "create", "clone", "clone_or_pull", "delete"
unless args.size >= 1
- puts "Error: Please provide a remote path to clone"
+ puts "Error: Please provide a remote path"
print_usage_and_quit
end
remote_path = args[0]