sushi_fabric 0.6.8 → 0.6.9
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 +4 -4
- data/lib/sushi_fabric/sushiApp.rb +10 -6
- data/lib/sushi_fabric/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24529e673ac6fed68fac1e3f7c217fe21877084b
|
4
|
+
data.tar.gz: fa1722a373ce3525885d256d53efc9c5ee75b261
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dc9431e6372259aa78f3dcb508b40aceedde976bf9f653a8fa9455cd1a47aba587ee3ec7d8780a6bf25e81c435eb52e24917ffa12cd32e942c97ac1865aa95a
|
7
|
+
data.tar.gz: 31cb01f6eb3c90847ac7ba6e965523a8161aec9b6675c5502dea4569d1b080dcab8d0259bf44fdc9386af24c577e5ea7090c0a4ece7c3aa36ba0d5f2adff3ced
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: utf-8
|
3
|
-
# Version = '20170302-
|
3
|
+
# Version = '20170302-093250'
|
4
4
|
|
5
5
|
require 'csv'
|
6
6
|
require 'fileutils'
|
@@ -202,7 +202,7 @@ class SushiApp
|
|
202
202
|
attr_accessor :workflow_manager
|
203
203
|
attr_accessor :current_user
|
204
204
|
attr_accessor :logger
|
205
|
-
attr_accessor :
|
205
|
+
attr_accessor :off_bfabric_registration
|
206
206
|
def initialize
|
207
207
|
@gstore_dir = GSTORE_DIR
|
208
208
|
@project = nil
|
@@ -248,8 +248,10 @@ class SushiApp
|
|
248
248
|
unless NO_ROR
|
249
249
|
@current_user ||= nil
|
250
250
|
@dataset_sushi_id = save_data_set(data_set_arr.to_a.flatten, headers, rows, @current_user)
|
251
|
-
|
252
|
-
|
251
|
+
unless @off_bfabric_registration
|
252
|
+
dataset = DataSet.find_by_id(@dataset_sushi_id.to_i)
|
253
|
+
dataset.register_bfabric
|
254
|
+
end
|
253
255
|
end
|
254
256
|
elsif @dataset_sushi_id
|
255
257
|
@dataset_hash = []
|
@@ -704,8 +706,10 @@ rm -rf #{@scratch_dir} || exit 1
|
|
704
706
|
@current_user ||= nil
|
705
707
|
@next_dataset_id = save_data_set(data_set_arr.to_a.flatten, headers, rows, @current_user)
|
706
708
|
|
707
|
-
|
708
|
-
|
709
|
+
unless @off_bfabric_registration
|
710
|
+
next_dataset = DataSet.find_by_id(@next_dataset_id)
|
711
|
+
next_dataset.register_bfabric
|
712
|
+
end
|
709
713
|
|
710
714
|
# save job and dataset relation in Sushi DB
|
711
715
|
job_ids.each do |job_id|
|
data/lib/sushi_fabric/version.rb
CHANGED