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



47
48
49
50
51
# File 'lib/cnvrg/data.rb', line 47

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

end

#commitsObject



63
64
65
66
67
# File 'lib/cnvrg/data.rb', line 63

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

end

#downloadObject



38
39
40
41
42
43
44
45
# File 'lib/cnvrg/data.rb', line 38

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

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

end

#initObject



17
18
19
20
21
# File 'lib/cnvrg/data.rb', line 17

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

#listObject



53
54
55
56
57
58
59
60
# File 'lib/cnvrg/data.rb', line 53

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

  cli.list_dataset()

end

#uploadObject



26
27
28
29
30
31
32
33
# File 'lib/cnvrg/data.rb', line 26

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

  cli.upload_data_tar(ignore, verbose,sync)
end