bin/sushi_fabric in sushi_fabric-0.2.8 vs bin/sushi_fabric in sushi_fabric-0.3.1
- old
+ new
@@ -1,8 +1,8 @@
#!/usr/bin/env ruby
# encoding: utf-8
-# Version = '20140315-210244'
+# Version = '20141222-172420'
require 'sushi_fabric'
opt = OptionParser.new do |o|
o.banner = <<-EOT
@@ -16,10 +16,11 @@
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', String, 'Project Number (default: 1001)')
o.on(:user, 'sushi_lover', '-u', '--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)')
+ o.on(:next_dataset_name, '-n next_dataset_name', '--next_dataset_name', 'Next DataSet Name (default: Analysis_Category+ID+Date )')
o.parse!(ARGV)
end
opt.project = 'p' + opt.project
if File.exist?('lib')
$: << 'lib'
@@ -60,9 +61,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.next_dataset_name
+ usecase.next_dataset_name = opt.next_dataset_name
+end
if opt.run_mode
usecase.run
else
usecase.test_run
end