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



87
88
89
90
91
92
93
# File 'lib/cnvrg/data.rb', line 87

def clone(dataset_url)
  cli = Cnvrg::CLI.new()
  only_tree =options[:only_tree]
  commit =options[:commit]
  query =options[:query]
  cli.clone_data(dataset_url, only_tree=only_tree,commit=commit, query=query)
end

#clone_query(dataset_url) ⇒ Object



97
98
99
100
101
# File 'lib/cnvrg/data.rb', line 97

def clone_query(dataset_url)
  cli = Cnvrg::CLI.new()
  query =options[:query]
  cli.clone_data_query(dataset_url,query=query)
end

#commitsObject



118
119
120
121
122
# File 'lib/cnvrg/data.rb', line 118

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

end

#delete(dataset_slug) ⇒ Object



104
105
106
107
108
# File 'lib/cnvrg/data.rb', line 104

def delete(dataset_slug)
  cli = Cnvrg::CLI.new()
  cli.delete_data(dataset_slug)

end

#downloadObject



72
73
74
75
76
77
78
79
80
81
# File 'lib/cnvrg/data.rb', line 72

def download()
  cli = Cnvrg::CLI.new()
  verbose = options["verbose"]
  sync = options["sync"]
  new_branch = options["new_branch"]
  commit = options["commit"]
  all_files = options["all_files"]
  cli.download_data_new(verbose,sync,new_branch, commit,all_files)

end

#download_tags_yamlObject



137
138
139
140
# File 'lib/cnvrg/data.rb', line 137

def download_tags_yaml
  cli = Cnvrg::CLI.new()
  cli.download_tags_yaml()
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



110
111
112
113
114
115
# File 'lib/cnvrg/data.rb', line 110

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

  cli.list_dataset()

end

#queriesObject



125
126
127
128
# File 'lib/cnvrg/data.rb', line 125

def queries()
  cli = Cnvrg::CLI.new()
  cli.queries()
end

#query_files(query) ⇒ Object



131
132
133
134
# File 'lib/cnvrg/data.rb', line 131

def query_files(query)
  cli = Cnvrg::CLI.new()
  cli.query_files(query)
end

#sync_data_newObject



52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/cnvrg/data.rb', line 52

def sync_data_new()
  cli = Cnvrg::CLI.new()
  force = options["force"]
  new_branch = options["new_branch"]
  verbose = options["verbose"]
  commit = options["commit"]
  all_files = options["all_files"]
  tags = options["tags"]
  parallel=options["parallel"]
  chunk_size = options["chunk_size"]
  init = options["init"]
  cli.sync_data_new(new_branch, force, verbose,commit,all_files, tags,parallel, chunk_size, init)
end

#uploadObject



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

def upload
  cli = Cnvrg::CLI.new()
  verbose = options["verbose"]
  sync = options["sync"]
  force = options["force"]
  new_branch = options["new_branch"]
  chunk_size = options["chunk_size"]
  tags = options["tags"]
  cli.upload_data_new(new_branch,  verbose,sync,force, tags, chunk_size)
end