dcas-ruby 0.3.7 → 0.3.8
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.
- data/VERSION +1 -1
- data/dcas-ruby.gemspec +1 -1
- data/lib/dcas.rb +10 -3
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.8
|
data/dcas-ruby.gemspec
CHANGED
data/lib/dcas.rb
CHANGED
@@ -73,9 +73,15 @@ module DCAS
|
|
73
73
|
end && begin
|
74
74
|
# 4) If we're still connected, check the file size of the file, then move it out of STAGING and mark file as completed.
|
75
75
|
if ftp.nlst.include?(shortname) && ftp.size(shortname) == File.size(filename)
|
76
|
-
|
77
|
-
|
78
|
-
|
76
|
+
begin
|
77
|
+
ftp.rename(shortname, "../#{outgoing_bucket}/#{shortname}") unless testing || outgoing_bucket == DCAS::STAGING_BUCKET
|
78
|
+
true
|
79
|
+
rescue Object
|
80
|
+
false
|
81
|
+
end && begin
|
82
|
+
lock_object.submit_finished!(shortname) if lock_object
|
83
|
+
true
|
84
|
+
end
|
79
85
|
else
|
80
86
|
if lock_object
|
81
87
|
lock_object.submit_failed!(shortname)
|
@@ -85,6 +91,7 @@ module DCAS
|
|
85
91
|
end
|
86
92
|
end
|
87
93
|
rescue Object
|
94
|
+
lock_object.submit_failed!(shortname) if lock_object
|
88
95
|
false
|
89
96
|
end
|
90
97
|
end
|