Top Level Namespace

Defined Under Namespace

Modules: Dbox

Constant Summary collapse

ROOT_PATH =
File.expand_path(File.join(File.dirname(__FILE__), ".."))

Instance Method Summary collapse

Instance Method Details



36
# File 'bin/dbox', line 36

def print_usage_and_quit; puts usage; exit 1; end

#usageObject

usage line



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'bin/dbox', line 8

def usage
  "Usage: dbox <command> [<args>]\n\nCommands:\n  authorize                             Generate auth keys\n  create <remote_path> [<local_path>]   Create a new Dropbox folder\n  list <remote_path>          List files and directories in Dropbox folder\n  clone <remote_path> [<local_path>]    Clone an existing Dropbox folder\n  pull [<local_path>]                   Pull changes from Dropbox\n  push [<local_path>]                   Push changes to Dropbox\n  sync [<local_path>]                   Sync changes to Dropbox\n  move <new_remote_path> [<local_path>] Move the remote Dropbox folder to a new location\n  delete <remote_path> [<local_path>]   Delete a Dropbox folder (local path optional, it will be deleted too if provided)\n  clone_or_pull <remote_path> [<local_path>] Clone an existing Dropbox folder, or pull if it already exists locally\n\nEnvironment varables needed for everything:\n  export DROPBOX_APP_KEY=cmlrrjd3j0gbend\n  export DROPBOX_APP_SECRET=uvuulp75xf9jffl\n\nEnvironment varables needed for everything other than authorize:\n  export DROPBOX_AUTH_KEY=v4d7l1rez1czksn\n  export DROPBOX_AUTH_SECRET=pqej9rmnj0i1gcxr4\n  export DROPBOX_ACCESS_TYPE=dropbox || app_folder (defaults to dropbox)\n\nSee http://github.com/kenpratt/dbox for examples and more information\n"
end