rest-ftp-daemon 0.410.1 → 0.410.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rest-ftp-daemon/job.rb +23 -7
- data/lib/rest-ftp-daemon/jobs/transfer.rb +0 -16
- data/rest-ftp-daemon.gemspec +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: 2b3b36ee449cbd6c6b17470b250c70d074a79f75
|
4
|
+
data.tar.gz: c42b57eb1a6177c4599692b7cf24c205c37020e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dae3f45a50aa835cad03301af5900680080fa210eb95a6a0f104a1025e42f7c1c5a4e153c29b0141b328e20b743f01af3957624c41446ad8a39ca3a02533c3f9
|
7
|
+
data.tar.gz: d32f13ed0b4021f56fdf29c17cf8ead52abfad781dbef5a14c39bbd29018322763508e4f8f4a7b7687432bbed3afe062c2e0eeb91ba0a7ecd324e48fe5a52103
|
data/Gemfile.lock
CHANGED
data/lib/rest-ftp-daemon/job.rb
CHANGED
@@ -130,7 +130,7 @@ module RestFtpDaemon
|
|
130
130
|
rescue Net::FTPConnectionError => exception
|
131
131
|
return oops :started, exception, "ftp_connection_error"
|
132
132
|
rescue StandardError => exception
|
133
|
-
return oops :started, exception, "
|
133
|
+
return oops :started, exception, "unexpected_before_error"
|
134
134
|
end
|
135
135
|
|
136
136
|
# Do the hard work
|
@@ -138,8 +138,24 @@ module RestFtpDaemon
|
|
138
138
|
log_debug "Job.process work"
|
139
139
|
set_status JOB_STATUS_WORKING
|
140
140
|
work
|
141
|
+
|
142
|
+
rescue RestFtpDaemon::SourceNotFound => exception
|
143
|
+
return oops :ended, exception
|
144
|
+
|
145
|
+
rescue RestFtpDaemon::TargetFileExists => exception
|
146
|
+
return oops :ended, exception
|
147
|
+
|
148
|
+
rescue RestFtpDaemon::TargetDirectoryError => exception
|
149
|
+
return oops :ended, exception
|
150
|
+
|
151
|
+
rescue RestFtpDaemon::TargetPermissionError => exception
|
152
|
+
return oops :ended, exception
|
153
|
+
|
154
|
+
rescue RestFtpDaemon::AssertionFailed => exception
|
155
|
+
return oops :ended, exception
|
156
|
+
|
141
157
|
rescue StandardError => exception
|
142
|
-
return oops :started, exception, "
|
158
|
+
return oops :started, exception, "unexpected_work_error"
|
143
159
|
end
|
144
160
|
|
145
161
|
# Finalize all this
|
@@ -147,7 +163,7 @@ module RestFtpDaemon
|
|
147
163
|
log_debug "Job.process after"
|
148
164
|
after
|
149
165
|
rescue StandardError => exception
|
150
|
-
return oops :started, exception, "
|
166
|
+
return oops :started, exception, "unexpected_after_error"
|
151
167
|
end
|
152
168
|
|
153
169
|
# All done !
|
@@ -240,10 +256,10 @@ module RestFtpDaemon
|
|
240
256
|
|
241
257
|
def set_info_location prefix, location
|
242
258
|
return unless location.is_a? Location
|
243
|
-
set_info prefix, :
|
244
|
-
set_info prefix, :
|
245
|
-
set_info prefix, :
|
246
|
-
set_info prefix, :
|
259
|
+
set_info prefix, :uri, location.to_s
|
260
|
+
set_info prefix, :scheme, location.scheme
|
261
|
+
set_info prefix, :host, location.host
|
262
|
+
set_info prefix, :path, location.path
|
247
263
|
end
|
248
264
|
|
249
265
|
private
|
@@ -152,24 +152,8 @@ module RestFtpDaemon
|
|
152
152
|
|
153
153
|
rescue Errno::EINVAL => exception
|
154
154
|
return oops :ended, exception, "invalid_argument", true
|
155
|
-
|
156
155
|
# rescue Encoding::UndefinedConversionError => exception
|
157
156
|
# return oops :ended, exception, "encoding_error", true
|
158
|
-
|
159
|
-
rescue RestFtpDaemon::SourceNotFound => exception
|
160
|
-
return oops :ended, exception
|
161
|
-
|
162
|
-
rescue RestFtpDaemon::TargetFileExists => exception
|
163
|
-
return oops :ended, exception
|
164
|
-
|
165
|
-
rescue RestFtpDaemon::TargetDirectoryError => exception
|
166
|
-
return oops :ended, exception
|
167
|
-
|
168
|
-
rescue RestFtpDaemon::TargetPermissionError => exception
|
169
|
-
return oops :ended, exception
|
170
|
-
|
171
|
-
rescue RestFtpDaemon::AssertionFailed => exception
|
172
|
-
return oops :ended, exception
|
173
157
|
end
|
174
158
|
|
175
159
|
def after
|
data/rest-ftp-daemon.gemspec
CHANGED