Class: Cnvrg::Data
Instance Method Summary
collapse
banner, subcommand_prefix
Instance Method Details
#clone(dataset_url) ⇒ Object
86
87
88
89
90
91
92
93
|
# File 'lib/cnvrg/data.rb', line 86
def clone(dataset_url)
cli = Cnvrg::CLI.new()
only_tree =options[:only_tree]
commit =options[:commit]
query =options[:query]
read = options[:read]
cli.clone_data(dataset_url, only_tree=only_tree,commit=commit, query=query, read=read)
end
|
#clone_query(dataset_url) ⇒ Object
116
117
118
119
120
|
# File 'lib/cnvrg/data.rb', line 116
def clone_query(dataset_url)
cli = Cnvrg::CLI.new()
query =options[:query]
cli.clone_data_query(dataset_url,query=query)
end
|
#commits ⇒ Object
137
138
139
140
141
|
# File 'lib/cnvrg/data.rb', line 137
def commits()
cli = Cnvrg::CLI.new()
cli.list_dataset_commits()
end
|
#delete(dataset_slug) ⇒ Object
123
124
125
126
127
|
# File 'lib/cnvrg/data.rb', line 123
def delete(dataset_slug)
cli = Cnvrg::CLI.new()
cli.delete_data(dataset_slug)
end
|
#download ⇒ Object
71
72
73
74
75
76
77
78
79
|
# File 'lib/cnvrg/data.rb', line 71
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
|
156
157
158
159
|
# File 'lib/cnvrg/data.rb', line 156
def download_tags_yaml
cli = Cnvrg::CLI.new()
cli.download_tags_yaml()
end
|
#init ⇒ Object
18
19
20
21
22
|
# File 'lib/cnvrg/data.rb', line 18
def init
cli = Cnvrg::CLI.new()
public = options["public"]
cli.init_data(public)
end
|
#list ⇒ Object
129
130
131
132
133
134
|
# File 'lib/cnvrg/data.rb', line 129
def list()
cli = Cnvrg::CLI.new()
cli.list_dataset()
end
|
#put(dataset_url, *files) ⇒ Object
108
109
110
111
112
|
# File 'lib/cnvrg/data.rb', line 108
def put(dataset_url, *files)
cli = Cnvrg::CLI.new()
dir = options[:dir]
cli.data_put(dataset_url, files: files, dir: dir)
end
|
#queries ⇒ Object
144
145
146
147
|
# File 'lib/cnvrg/data.rb', line 144
def queries()
cli = Cnvrg::CLI.new()
cli.queries()
end
|
#query_files(query) ⇒ Object
150
151
152
153
|
# File 'lib/cnvrg/data.rb', line 150
def query_files(query)
cli = Cnvrg::CLI.new()
cli.query_files(query)
end
|
#set ⇒ Object
97
98
99
100
101
102
103
104
|
# File 'lib/cnvrg/data.rb', line 97
def set
cli = Cnvrg::CLI.new
cli.log_start(__method__)
cli.log_handler
if options['url'].present?
cli.set_data_url(options['url'])
end
end
|
#sync_data_new ⇒ Object
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# File 'lib/cnvrg/data.rb', line 51
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
|
#upload ⇒ Object
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/cnvrg/data.rb', line 30
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
|