bin/sushi_fabric in sushi_fabric-0.3.5 vs bin/sushi_fabric in sushi_fabric-0.3.6

- old
+ new

@@ -1,8 +1,8 @@ #!/usr/bin/env ruby # encoding: utf-8 -# Version = '20150326-155111' +# Version = '20150327-011934' require 'sushi_fabric' opt = OptionParser.new do |o| o.banner = <<-EOT @@ -11,10 +11,11 @@ \t(Either --dataset_id or --dataset_tsv is \e[31mrequired\e[0m) EOT o.on(:class_name, '-c class_name', '--class', "SushiApp class name (\e[31mrequired\e[0m)") o.on(:dataset_id, '-i dataset_id', '--dataset_id', Integer, 'DataSet ID in Sushi DB') o.on(:dataset_tsv, '-d dataset_tsv', '--dataset', String, 'DataSet file (.tsv) (This option is prior to dataset_id option)') + o.on(:dataset_name, '-s dataset_name', '--dataset_name', String, 'DataSet name in Sushi (This will be used with --dataset option, default: tsv file base name)') o.on(:parameterset_tsv, '-m parameterset_tsv', '--parameterset', String, 'Parameterset file (.tsv)') o.on(:run_mode, '-r', '--run', 'Real run mode. without this option, it runs with test run mode which checks only DataSet and Parameters and no submittion') o.on(:project, '1001', '-p project', '--project', String, 'Project Number (default: 1001)') o.on(:user, 'sushi_lover', '-u user', '--user', String, 'Submit user (default: sushi_lover)') o.on(:load_path, '-I load_path', '--load_path', 'Add path where SushiApp class is located (default: ./lib)') @@ -61,9 +62,12 @@ usecase.project = opt.project usecase.user = opt.user usecase.dataset_sushi_id = opt.dataset_id usecase.dataset_tsv_file = opt.dataset_tsv usecase.parameterset_tsv_file = opt.parameterset_tsv +if opt.dataset_name + usecase.dataset_name = opt.dataset_name +end if opt.next_dataset_name usecase.next_dataset_name = opt.next_dataset_name end if opt.run_mode usecase.run