Class: Cnvrg::Data

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

Instance Method Summary collapse

Methods inherited from SubCommandBase

banner, subcommand_prefix

Instance Method Details

#clone(dataset_url) ⇒ Object



4740
4741
4742
4743
4744
# File 'lib/cnvrg/cli.rb', line 4740

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

end

#commitsObject



4757
4758
4759
4760
4761
# File 'lib/cnvrg/cli.rb', line 4757

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

end

#downloadObject



4729
4730
4731
4732
4733
4734
4735
4736
# File 'lib/cnvrg/cli.rb', line 4729

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

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

end

#initObject



4705
4706
4707
4708
4709
# File 'lib/cnvrg/cli.rb', line 4705

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

#listObject



4748
4749
4750
4751
4752
4753
# File 'lib/cnvrg/cli.rb', line 4748

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

  cli.list_dataset()

end

#uploadObject



4716
4717
4718
4719
4720
4721
4722
4723
# File 'lib/cnvrg/cli.rb', line 4716

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

  cli.upload_data_tar(ignore, verbose, sync)
end