Class: DropboxFolderSync::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/dropbox-folder-sync/cli.rb

Instance Method Summary collapse

Instance Method Details

#json(name = "default") ⇒ Object



25
26
27
# File 'lib/dropbox-folder-sync/cli.rb', line 25

def json name = "default"
  DropboxFolderSync::App.json name
end

#login(name = "default") ⇒ Object



9
10
11
# File 'lib/dropbox-folder-sync/cli.rb', line 9

def  name="default"
  DropboxFolderSync::App.(name)
end

#logout(name = "default") ⇒ Object



14
15
16
# File 'lib/dropbox-folder-sync/cli.rb', line 14

def logout name="default"
  DropboxFolderSync::App.logout(name)
end

#sync(remote, local) ⇒ Object



20
21
22
# File 'lib/dropbox-folder-sync/cli.rb', line 20

def sync remote,local
  DropboxFolderSync::App.sync(remote,local,options)
end