cnvrg 1.6.18 → 1.6.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee65be3fb48255bc1f633f2473f2ac6d828b93da16b5ef9a1ac01269978b4b9b
4
- data.tar.gz: 6a4090902ae873fb465634bdccd5be5b72a01890b1629970e8d374711c00c597
3
+ metadata.gz: 8cf49dc1e2ec5d93b2c9e764f6175a26f632176f4469d5c439117cb208ba9a12
4
+ data.tar.gz: ac836d3b54b282f6899226b0e7f144c8d1ad4843396238bece046947b487c21a
5
5
  SHA512:
6
- metadata.gz: cb6ae0316744a0bb1ae3f41539ce8b98cb86a10fb0cba0cc9004b7c56ede376e85aae9aa233c9488faf5fe00949bc195c65ffc4a7dabc0f576b158c43b9ce4e0
7
- data.tar.gz: 9c46f5307f71379a1f842435a43a5d80307632ecb9744c004733991f51e30b0c1b0a347d1e6f616bb24536243a227281494c17ccb45a43f5da6d9fa6d5a35cc0
6
+ metadata.gz: a4314adee140a916cce95ca56899aba1f1365594a9fe768aef46becaadc3a332132e2b7134e35114e8837e530062a07d98f8cb12f6108d0cc994529fa54191b2
7
+ data.tar.gz: 229d299a375706bd70708a41204ac1c57e6cde2e6c6766094a04b0c2e10eb4b235f71a7b1295fc1af0ee4f209df5dde817467ce555f37745cd060bf02955ea91
@@ -753,11 +753,14 @@ module Cnvrg
753
753
  desc 'data init', 'Init dataset directory', :hide => true
754
754
  method_option :public, :type => :boolean, :aliases => ["-p", "--public"], :default => false
755
755
 
756
- def init_data(public, bucket: nil)
756
+ def init_data(public, bucket: nil, title: nil)
757
757
  begin
758
758
  verify_logged_in(false)
759
759
  log_start(__method__, args, options)
760
760
  dataset_name = File.basename(Dir.getwd)
761
+ if title.present?
762
+ dataset_name = title
763
+ end
761
764
  if File.directory?(Dir.getwd + "/.cnvrg")
762
765
  config = YAML.load_file("#{Dir.getwd}/.cnvrg/config.yml")
763
766
  log_message("Directory is already linked to #{config[:dataset_slug]}", Thor::Shell::Color::RED)
@@ -22,11 +22,14 @@ module Cnvrg
22
22
  desc "data init", "Set current directory as dataset directory"
23
23
  method_option :public, :type => :boolean, :aliases => ["-p", "--public"], :default => false
24
24
  method_option :bucket, :type => :string, :aliases => ["-b", "--bucket"], :default => ""
25
+ method_option :title, :type => :string, :aliases => ["-t", "--title"], :default => ""
26
+
25
27
  def init
26
28
  cli = Cnvrg::CLI.new()
27
29
  public = options["public"]
28
30
  bucket = options["bucket"]
29
- cli.init_data(public, bucket: bucket)
31
+ title = options["title"]
32
+ cli.init_data(public, bucket: bucket, title: title)
30
33
  end
31
34
 
32
35
  desc "data link DATASET_SLUG", "Set current directory as dataset directory"
@@ -1,3 +1,3 @@
1
1
  module Cnvrg
2
- VERSION = '1.6.18'
2
+ VERSION = '1.6.19'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cnvrg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.18
4
+ version: 1.6.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yochay Ettun
@@ -477,7 +477,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
477
477
  - !ruby/object:Gem::Version
478
478
  version: '0'
479
479
  requirements: []
480
- rubygems_version: 3.0.3
480
+ rubygems_version: 3.0.4
481
481
  signing_key:
482
482
  specification_version: 4
483
483
  summary: A CLI tool for interacting with cnvrg.io.