Class: Cnvrg::Data

Inherits:
SubCommandBase show all
Defined in:
lib/cnvrg/data.rb

Instance Method Summary collapse

Methods inherited from SubCommandBase

banner, subcommand_prefix

Instance Method Details

#clone(dataset_url) ⇒ Object



51
52
53
54
55
# File 'lib/cnvrg/data.rb', line 51

def clone(dataset_url)
  cli = Cnvrg::CLI.new()
  cli.clone_data(dataset_url)

end

#commitsObject



65
66
67
68
69
# File 'lib/cnvrg/data.rb', line 65

def commits()
  cli = Cnvrg::CLI.new()
  cli.list_dataset_commits()

end

#downloadObject



42
43
44
45
46
47
48
49
# File 'lib/cnvrg/data.rb', line 42

def download()
  cli = Cnvrg::CLI.new()
  verbose = options["verbose"]
  sync = options["sync"]

  cli.download_data(verbose,sync,Dir.pwd)

end

#initObject



19
20
21
22
23
# File 'lib/cnvrg/data.rb', line 19

def init
  cli = Cnvrg::CLI.new()
  public = options["public"]
  cli.init_data(public)
end

#listObject



57
58
59
60
61
62
# File 'lib/cnvrg/data.rb', line 57

def list()
  cli = Cnvrg::CLI.new()

  cli.list_dataset()

end

#uploadObject



30
31
32
33
34
35
36
37
# File 'lib/cnvrg/data.rb', line 30

def upload
  cli = Cnvrg::CLI.new()
  ignore = options["ignore"]
  verbose = options["verbose"]
  sync = options["sync"]
  no_compression = options["no_compression"]
  cli.upload_data_tar(ignore, verbose,sync,no_compression)
end